|
The <span> tag is similar to the <div> tag, but you use it to change styles within a sentence or within a word, or to create special effects. For example: <p>The style specification affects <span style="font-size: 10pt; color: red"> all the text </span>until the span close tag</p> You use it to apply a style when you cannot attach the style to an HTML tag.
|
More information Use the class attribute as a selector Use the id attribute as a selector Matching attributes and selectors Pseudo classes and elements as selectors Using the <div> tag to set a style Using the <span> tag to set a style |