+ 4
Could any buddy tell me why sololearn has not included 'div' tag?
Confused
9 Answers
+ 6
Because with html5, div tag is depreciated. Semantic tags like article, section e.t.c. are appreciated.
+ 6
I do not believe that div is a deprecated tag. The only part of it that is deprecated is the "align" attribute.
https://www.w3schools.com/tags/tag_div.asp
+ 6
Janningâ I must say that the word deprecated was not suitable there. What I meant to say is that in html5 specification, it was mentioned that div tag would be relatively last choice. We should prefer semantic tags.
+ 5
Arushi Singhania
đ€ Use of semantic tags are encouraged and, depending on the level of browser support intended for your website, preferred over div. For larger projects, it can be much more scalable to use components that are compartmentalized with divs.
+ 4
No idea but there are plenty of challenge quiz questions on div tags.
+ 4
Arushi Singhania Indeed... preferred would be the more appropriate word here regarding the use of div over the more specialized semantic tags.
Ultimately, div is still the most general/base semantic tag used for block level content.
+ 3
The div tag is covered in this lesson:
https://www.sololearn.com/learn/HTML/1034/?ref=app
+ 3
David Carroll Yup, I agree with it that still div is most used. Personally, I too use div instead of other semantic tags from my small projects to big websites.
+ 2
Thnx man