Div | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Div

What can I do with <div> tag? (I konw a bit but I want to konw more about ☺)

23rd Jul 2016, 10:12 PM
Darius Judea
Darius Judea - avatar
2 Answers
+ 5
Div is just a container tag. If you want to group a bunch of elements and position them or style them together as one block, you use div. HTML5 did introduce many new tags that replace <div> and describe content better. Some of these tags are header, nav, section, article, aside, footer..
24th Jul 2016, 12:35 AM
ZinC
ZinC - avatar
+ 3
thx ZinC you are the best !😀
24th Jul 2016, 9:21 AM
Darius Judea
Darius Judea - avatar