Could any buddy tell me why sololearn has not included 'div' tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Could any buddy tell me why sololearn has not included 'div' tag?

Confused

9th Feb 2019, 8:06 AM
Ronak Sharma
Ronak Sharma - avatar
9 Answers
+ 6
Because with html5, div tag is depreciated. Semantic tags like article, section e.t.c. are appreciated.
9th Feb 2019, 8:39 AM
Arushi Singhania
Arushi Singhania - avatar
+ 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
9th Feb 2019, 10:13 AM
Janning⭐
Janning⭐ - avatar
+ 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.
9th Feb 2019, 11:40 AM
Arushi Singhania
Arushi Singhania - avatar
+ 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.
9th Feb 2019, 6:38 PM
Janning⭐
Janning⭐ - avatar
+ 4
No idea but there are plenty of challenge quiz questions on div tags.
9th Feb 2019, 8:14 AM
Sonic
Sonic - avatar
+ 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.
11th Feb 2019, 6:47 PM
David Carroll
David Carroll - avatar
+ 3
The div tag is covered in this lesson: https://www.sololearn.com/learn/HTML/1034/?ref=app
9th Feb 2019, 10:16 AM
Janning⭐
Janning⭐ - avatar
+ 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.
11th Feb 2019, 10:35 PM
Arushi Singhania
Arushi Singhania - avatar
+ 2
Thnx man
9th Feb 2019, 8:20 AM
Ronak Sharma
Ronak Sharma - avatar