Google News
logo
HTML - Interview Questions
What is the use of span tag? Give one example.
The span tag is used for following :

.  For adding color on text
.  For adding background on text
.  Highlight any color text etc.

Example:

<h3><span style="color:#0099da; font-weight:bold;">  
Free Time Learning

</span></h3>
Advertisement