+ 1
<div></div>
Please can someone help me to explain what the code does, (<div></div>) I still don't get it
4 Respostas
+ 4
A DIV tag is basically just an empty block. You can assign properties to it so that it has borders, padding, margins, colors, etc. But on it's own, it's just an empty container with no default properties. Give it a size and color, and it will be a box on the screen. Put other elements inside it, etc.
+ 3
In addition to above answer it is used as container.
0
It is just a tag it can include some tags too like:
<div>
<h1>hellp world</h1>
</div>
Sometimes we use it to separate different part of sites
0
It's a container