Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the use of a span tag?
Home
HTML
What is the use of a span tag?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
What is the use of a span tag in HTML?
html-span-tag
span-tag
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 24, 2019
by
rajeshsharma
(
23.9k
points)
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
Q: What is the difference between span and div?
asked
Sep 6
in
HTML
by
Robindeniel
(
20.8k
points)
spanhtml
0
votes
Q: Which HTML5 tag would you use to define footer?
asked
Feb 11, 2020
in
HTML
by
rahuljain1
(
6.5k
points)
#html-footer
+1
vote
Q: What is the use of details and summary tag in HTML?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
summary-tag
html-summary-tag
0
votes
Q: What is the use of figcaption tag in HTML 5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
figcaption-tag
figcaption-html
0
votes
Q: What is the use of figure tag in HTML 5?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
figure-tag
html-tag
0
votes
Q: What is the use of an iframe tag?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
(
32.2k
points)
iframe-tag
html-iframe
0
votes
Q: What is a self closing tag?
asked
Sep 6
in
HTML
by
Robindeniel
(
20.8k
points)
selfclosingtag
0
votes
Q: Write a HTML table tag sequence that outputs the following
asked
Sep 6
in
HTML
by
Robindeniel
(
20.8k
points)
html
...