What is a div?

DefinitionA div is a generic HTML container element that groups other content so it can be styled with CSS or manipulated with scripts, but it carries no meaning of its own about what that content is.

The div element is a block-level wrapper, so by default it starts on a new line and takes up the full width available. Developers use divs to build layout containers, wrap groups of elements for CSS layouts such as flexbox and grid, and give scripts a place to insert content. A div only gets meaning from the classes, IDs and attributes added to it.

Because a div says nothing about its content, browsers, search engines and assistive technologies such as screen readers can't tell what it represents. Using divs where a more specific element exists, such as header, nav, main, article, section, button or footer, makes pages harder to navigate and less accessible. Starting with semantic HTML, adding WAI-ARIA only when needed, and keeping divs for purely presentational grouping is generally the better approach.

div resources

Topic: Web development

Cite this definition
APA

What is a div? (2026, November 22). Glossary. https://glossary.io/div/

MLA

“What Is a div?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/div/.

Chicago

“What Is a div?” Glossary. Coywolf. November 22, 2026. https://glossary.io/div/.

HTML link
<a href="https://glossary.io/div/">What is a div?</a>

Published