+ 1

<div></div>

Please can someone help me to explain what the code does, (<div></div>) I still don't get it

18th Sep 2024, 10:16 PM
Utibe David Amos
Utibe  David Amos - avatar
2 Antworten
+ 2
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.
18th Sep 2024, 11:07 PM
Jerry Hobby
Jerry Hobby - avatar
+ 1
In addition to above answer it is used as container.
19th Sep 2024, 5:22 AM
Andrew [DEAD]
Andrew [DEAD] - avatar