In this section, we will learn what HTML <span> element is and how to use it.
What is <span> Tag in HTML?
HTML <span> element is a container just like HTML <div> element but an inline one!
We use it when we have a paragraph in a document and want to style or modify part of that content.
You see, when we want to create a paragraph, most of the time it’s the <p> element that is used for this purpose.
But with only <p> element, it is difficult to access only a specific part of the content and modify it!
So, this is where we can use HTML <span> element.
HTML <span> Tag Syntax:
<span> content </span>