Explain about span tag in html.
https://www.computersprofessor.com/2019/05/explain-about-span-tag-in-html.html?m=0
Explain about span tag in html.
HTML no longer supports the idea of modifying
individual items in a place. A simple and efficient model has been derived
based around the span tag span’s are used as follows.
Syntax:
- - - -
-
Eg: < p > my puppy has < span style = “ color: blue”> blue
eyes
.
The HTML tag is used for grouping and applying
styles to inline elements.
There is a difference between the span tag and the div tag.
The span tag is used with inline elements whilst the div tag is used with
block-level content.
Example
This is
a paragraph
This is a
paragraphThis is a paragraph
This is
another paragraph