HTML, div


#1

I am new and i dont understand something, i have enrolled for the make a website course and im learning about divs, i dont understand why would you want to use them


#2

https://dev.w3.org/html5/html-author/#the-div-element

4.3.12.2 The div element

The div element represents nothing at all. It can be used with the class, lang/xml:lang, and title attributes to mark up semantics common to a group of consecutive elements.

Start tag:
required
End tag:
required

Categories:
Flow content.

Contained By:
Where flow content is expected.

Content Model:
Flow content.

Attributes
Global attributes

DOM Interface
Uses HTMLElement.

The DIV element provides us with a container that has no attached or perceivable meaning in the document. It is a block level element that can receive any type of content (except BODY, HEAD, HTML). Divisions are contained in the BODY, and not the HEAD, and they may contain other divisions.