HTML span tag

Last Updated on April 26, 2023 by Roshan Parihar

HTML span tag is used inside webpages to show inline content. The span is considered as a small content inside web pages.


Both div and span tag shows different contents. HTML div tag displays content in block while span tag displays inline content.

The div tag shows large block of content while span tag shows small content.

Output

The is the span to show inline content.

Resources and References of HTML span tag

1. W3C Specification.
2. HTML living standard
3. W3C project using Github