+ 1

Help

I see that in a lot of codes appear the div tag, please, can anyone tell me why it is so useful?

11th Apr 2017, 7:30 PM
Dado2000
Dado2000 - avatar
2 Answers
+ 4
<div> tag is kind of block tag which defines division or section of html document. The <div> tag is used to group block-element to format them using CSS. So it is very basic tag and often vital in every real life website design.
11th Apr 2017, 7:57 PM
Sbk0103
Sbk0103 - avatar
+ 3
actually even if you use something like <hat></hat> it will work but you need to add display block to it in css. so the advantage of <div> is the browser already know it's a block level element
11th Apr 2017, 8:50 PM
G. keng
G. keng - avatar