0

What are div tags used for in html? Are they necessary to use in an html document?

7th Sep 2018, 4:13 PM
Ethan Morrell
Ethan Morrell - avatar
2 Réponses
+ 1
it is optional, as to speak, but it does divide html documents into sections, as the other guy said. and it’s pretty useful for css if you only want to style large parts of a document, either internally or externally (class, id). the <span> element can do the same thing, but it’s more of an inline element so it’s not really recommended for large sections of content.
12th Sep 2018, 4:20 AM
Meringii
Meringii - avatar
0
it encapsulates other page elements and and divides html documents into sections.
7th Sep 2018, 4:24 PM
Godana Emiru
Godana Emiru - avatar