<span>



HTML <span> Tag


The <span> tag is used as a container which can hold different elements.

<div> tag can create a new line, while <span> tag do not create it.

It can be used to group elements for styling purposes 


Example :

<span style="background-color:yellow;">This is Example of Span Tag</span>

<div style="background-color:yellow;">This is Example of Div Tag</div>

Output :