HTML Span Tag

HTML Span Tag

HTML Span Tag

Example:
Some words of <span style="color:blue">this sentence become</span> blue.
Run Code »

Run the code to see the effect.


Difference between the Div and Span Tag

Example:
Some words of <span style="color:blue">this sentence become</span> blue.
Some words of <div style="color:blue">this sentence become</div> blue.
Run Code »

Run the code to see the effect.

Example:
Some words of <span style="background-color:lime">this sentence become</span> blue.
Some words of <div style="background-color:lime">this sentence become</div> blue.
Run Code »

Run the code to see the effect.

Example:
<div style="text-align:right; background-color:lightblue;">
<a href="#">HOME</a> | <a href="#">CONTACT</a> | <a href="#">ABOUT</a>
</div>
Run Code »

Run the code to see the effect.


HTML Span Tag in Hindi

Best Use:360p or more (480p or 720p)