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?
0
votes
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
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
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>
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: What is the difference between span and div?
asked
Sep 6, 2023
in
HTML
by
Robindeniel
spanhtml
0
votes
Q: Which HTML5 tag would you use to define footer?
asked
Feb 11, 2020
in
HTML
by
rahuljain1
#html-footer
+1
vote
Q: What is the use of details and summary tag in HTML?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
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
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
figure-tag
html-tag
0
votes
Q: What is the use of an iframe tag?
asked
Oct 24, 2019
in
HTML
by
SakshiSharma
iframe-tag
html-iframe
0
votes
Q: HTML5 audio tag has a number of attributes to control the look and feel and various functionalities of the audio player.
asked
Feb 2
in
HTML
by
DavidAnderson
html-interview-questions-answers
0
votes
Q: What is a self closing tag?
asked
Sep 6, 2023
in
HTML
by
Robindeniel
selfclosingtag
0
votes
Q: Write a HTML table tag sequence that outputs the following
asked
Sep 6, 2023
in
HTML
by
Robindeniel
html
0
votes
Q: Which of the following tag is used to create a combo box (or drop-down box)?
asked
Jan 29, 2021
in
HTML
by
rajeshsharma
html-combo-box
combo-box
drop-down-box
...