HTML Span Tag

HTML Span tag  is a liner container it contains all charector in same - line

Span tag does not have any specific attribute

Span tag support all global attribute

HTML Span used to inlining style of paragraph , heading , and  anythings which is in a line


<span>hello boss how are you </span>

<span> I am fine</span>


hello boss how are you

I am fine

Use span tag  in paragrph tag


<p>Hello john <span> how are you </span></p>


Hello john how are you

Use span for inlining style


<span class="red"> fast2 </span><sapn class=" black"> learniing </span>

NOTE : above class style given in css file