+ 1

What does span tag do in html?

2nd Oct 2020, 6:41 PM
Bittu Raj
Bittu Raj - avatar
2 odpowiedzi
+ 5
Hi there! The HTML <span> 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. Below is the example of span tag in HTML: <!DOCTYPE html> <html> <head> <title>HTML span Tag</title> </head> <body> <p>This is a paragraph <span style = "color:#FF0000;"> This is a paragraph</span>This is a paragraph</p> <p><span style = "color:#8866ff;"> This is another paragraph</span></p> </body> </html>
2nd Oct 2020, 6:53 PM
LATEEF
LATEEF - avatar
+ 1
Thankyou
4th Jun 2021, 2:29 PM
Atharv Powalkar