Why we use different tags like div, section, header etc. when they have a similar function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we use different tags like div, section, header etc. when they have a similar function?

16th May 2020, 12:56 AM
Sharjeel Faiq
Sharjeel Faiq - avatar
3 Answers
+ 1
It's for make code more easier to read
16th May 2020, 1:04 AM
ycsvenom
ycsvenom - avatar
+ 1
In term of styling, they are the same. Semantically different.
16th May 2020, 4:22 AM
Calviղ
Calviղ - avatar
16th May 2020, 1:44 AM
EmmanueLZ.
EmmanueLZ. - avatar