HTML <span> Tag
The <span> tag is used for grouping and applying styles to inline elements.
The difference between the span tag and the div tag is that the span tag is used with inline elements whilst the div tag is used with block-level content.
- Example Code:
The color of the sky is <span style="color:blue;">blue</span>
The color of the sky is blue
- Global Attributes:
The <span> tag also supports the Global Attributes in HTML5
- Event Attributes:
The <span> tag also supports the Event Attributes in HTML5