+ 1

What is the importance of <span> tag

When I go through the lessons I didn't get any idea about <span> tag it's relevence.why we use span tag.

6th Apr 2020, 2:14 PM
Nirmal M Manoj
Nirmal M Manoj - avatar
1 ответ
+ 1
i dont know about it to much either but u can use it to style specific element; for example if u want to change color for only some letters <p>Hello wo<span>rld!</span></p> then in css p{color:black;} span{color:pink;}
6th Apr 2020, 2:20 PM
durian
durian - avatar