jump

HTML: The Markup Language (an HTML language reference)

divgeneric flow container # T

The div element is a generic container for flow content that by itself does not represent anything.

Permitted contents #

zero or more style elements, followed by flow content

Permitted attributes #

global attributes
Any attributes permitted globally.

Additional constraints and admonitions #

Tag omission #

A div element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain flow elements

Details #

The div can be used with attributes such as class, lang, xml:lang, and title to add additional semantics and structure to flow content.

DOM interface #

interface HTMLDivElement : HTMLElement {};

Typical default display properties #

div {
display: block; }