in HTML by
What is the use of a span tag in HTML?

1 Answer

0 votes
by
The span tag is used for following things:

For adding color on text

For adding background on text

Highlight any color text

Example:

<p>  

<span style="color:#ffffff;">  

In this page we use span.  

</span>  

</p>

Related questions

0 votes
asked Feb 11, 2020 in HTML by rahuljain1
0 votes
asked Feb 11, 2020 in HTML by rahuljain1
0 votes
asked Jan 29, 2021 in HTML by rajeshsharma
...