div element

A generic HTML container, div for blocks and span for inline text, that groups content for styling but says nothing about what the content is.

In more detail

Divs and spans are useful for layout, but a page made only of them has no landmarks or roles for assistive technology. Prefer a semantic element when one fits.

Related terms

Taught in

References