+ 3
What's the use of <span> element
I don't have understand the different between it and the <div> element
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.
+ 6
Mohammed Gargotti
Please use search option. There are so many duplicate questions
https://www.sololearn.com/discuss/1957117/?ref=app
https://www.sololearn.com/discuss/2048316/?ref=app
https://www.sololearn.com/discuss/2239009/?ref=app
https://www.sololearn.com/discuss/1807247/?ref=app
https://www.sololearn.com/discuss/1380305/?ref=app
https://www.sololearn.com/discuss/2108471/?ref=app
https://www.sololearn.com/discuss/1792801/?ref=app
https://www.sololearn.com/discuss/2103627/?ref=app
https://www.sololearn.com/discuss/1406042/?ref=app