0
What is <div and when to use it?
3 Réponses
+ 2
div is short for division. it helps group your contents into various sections. Before HTML 5 div was used in the place of header, nav, footer, section, article and more. It is just a container like the body tag and you can insert any HTML tag inside it. div is useful with CSS but with HTML it play very little role except for the break it creates after the end tag which is why it is called a block element instead of inline.
+ 2
Its like a block or layer. You can use it to manage better others tags for positionate