Description:

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>
Result:
The color of the sky is blue
Attributes:

None

Global Attributes:

The <span> tag also supports the Global Attributes in HTML5

Event Attributes:

The <span> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.