+ 1

Why we use <span> tag in Html?

what does a <span> tag do for us?

23rd Dec 2019, 6:07 AM
Daud Semab
Daud Semab - avatar
2 Respostas
+ 3
<span> is an inline element. If you want to style a word or a line within a paragraph etc., you can make use of it. Block level elements cannot be used inside inline elements but inline elements can be used inside block level elements. Eg- of block level element is <div>.
23rd Dec 2019, 6:19 AM
Avinesh - avatar
Span tag can be used to style certain words in middle of paragraph.
23rd Dec 2019, 4:34 PM
ūüáģūüá≥Vivekūüáģūüá≥ - avatar