What is the <span> tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the <span> tag?

What is it good for?

10th Sep 2017, 4:55 PM
Ananta Dev Datta
2 Answers
+ 5
Span tags can be used to group inline-elements in documents. Tags provide a way to add a hook to a part of a text or a part of a document and there is no visual change. :) This will help ↓ https://www.w3schools.com/tags/tag_span.asp
10th Sep 2017, 5:01 PM
Lew
Lew - avatar
0
<span> tag is an inline tag. It is used to define some short quotations inside a large paragraph. So, that the text may be used and styled separately. Ex. <p>......................<span id="style" style="color:blue"> small text </span>............</p>
30th Apr 2019, 5:22 AM
Vikash Kumar
Vikash Kumar - avatar