Prepared by: Anthony Larrain
Span tag
- The
<span>
tag does nothing. - Typically used to apply a style to a line or a word within an element.
- Used along with the attributes.
- style
- id
- class
Example 1
House of Tunes Concert Schedule 2006
House of Tunes Concert Schedule 2006
Browser Display
House of Tunes Concert Schedule 2006
House of Tunes Concert Schedule 2006
Example 2
This example uses a class selector to define the style. Remember the class selector is defined within the style tags nested inside the head or an external style sheet.