HTML - how to use <span> tag

The HTML <> tag is used to define inline content or to group inline tags within a page. The <span> tag is rendered like all other text, however, it can be used to style as needed.


The tag supports the global and event attributes.


<p><span style="color:red;">HTML5</span> is the building block of <span style="font-weight:bold;">webpages</span>.</p>

Related HTML tags and Usefil Links: