- 1
Looking for the best explanation of how to use the <span> tag
3 Answers
+ 2
In HTML, the span tag is a generic inline container element. Span tags usually wrap sections of text for styling purposes or for adding attributes to a section of text without creating a new line of content.
The span element is called âgenericâ because the name of the tag itself doesnât tell us anything about the contents of the element. In other words, âspanâ doesnât mean anything to us. The opposite of a generic HTML element is a semantic HTML element, one whose name describes its purpose (e.g., <p> for paragraph, <button>).
+ 1
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app
0
Span is used to "select" part of text, to style it with css, or select this and change value using JavaScript