Html & Html5

The World's best Software Development Study Portal

HTML span tag

It is use for styling any grouped inline elements.
We can change the language as well as the color using css inside <span> tag.

Let's understand this by the following example:

<h2> Example of span tag.<h2>
<p> I have <span style="color:red"> red </span>,
<span style="color:blue"> blue </span>pen.</p>