Skip to main content

html-tags.com

<div>

The generic container with no meaning of its own — the deliberate last resort.

Baseline: Widely available · Grouping content

When to use it

Only when no semantic element fits: styling wrappers, dt/dd pair grouping inside dl, microdata scopes.

When not to

Every div in a finished document should be individually justifiable; reach for article, section, nav, aside, figure, or search first.

Example

Wrapped pair
div is valid here purely to enable styling.
<dl>
  <div>
    <dt>Wrapped pair</dt>
    <dd>div is valid here purely to enable styling.</dd>
  </div>
</dl>
Rendered live above, source below.

Authoritative references