+ 3

What's the use of <span> element

I don't have understand the different between it and the <div> element

21st Jun 2020, 3:06 PM
Mo7ammed Algaragotti
2 Réponses
+ 5
Mohammed Gargotti The <span> tag is an inline container used to mark up a part of a text, or a part of a document. The <span> tag is easily styled by CSS or manipulated with JavaScript using the class or id attribute.The span> tag is much like the <div> element, but <div> is a block-level element and <span> is an inline element.
21st Jun 2020, 3:17 PM
Indira
Indira - avatar