+ 1
Help
I see that in a lot of codes appear the div tag, please, can anyone tell me why it is so useful?
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.
+ 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