---
title: "What is a div?"
term: "div"
description: "A 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."
url: "https://glossary.io/div/"
published: "2026-11-22T20:49:34.169Z"
updated: "2026-11-22T20:49:34.169Z"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q94092652"
---

# What is a div?

**Definition:** A 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](https://glossary.io/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](https://glossary.io/semantic-html/), adding [WAI-ARIA](https://glossary.io/wai-aria/) only when needed, and keeping divs for purely presentational grouping is generally the better approach.

## div resources

- [The meaninglessness of divs](https://coywolf.com/newsletter/the-meaninglessness-of-divs/)

## Related terms

- [CSS](https://glossary.io/css/)
- [Semantic HTML](https://glossary.io/semantic-html/)
- [span](https://glossary.io/span/)
- [WAI-ARIA](https://glossary.io/wai-aria/)

**Topic:** [Web development](https://glossary.io/topics/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/.

Published November 22, 2026.
