11 KiB
| title | chunk | source | category | tags | date_saved | instance |
|---|---|---|---|---|---|---|
| Block-level content - Glossary | MDN | 1/3 | https://developer.mozilla.org/en-US/docs/Glossary/Block-level_content | reference | web, html, css, javascript, documentation | 2026-05-05T05:25:17.439524+00:00 | kb-cron |
MDN HTML HTML: Markup language
HTML reference
HTML guides
Markup languages
CSS reference
CSS guides
Layout cookbook
JavaScriptJS JavaScript: Scripting language
JS reference
JS guides
Web APIs Web APIs: Programming interfaces
Web API reference
Web API guides
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
Block-level content
In CSS, content that participates in block layout is called block-level content.
In a block layout, boxes are laid out one after the other, vertically, beginning at the top of a containing block. Each box's left outer edge touches the left edge of the containing block.
A block-level element always starts on a new line. In horizontal writing modes, like English or Arabic, it occupies the entire horizontal space of its parent element (container) and vertical space equal to the height of its contents, thereby creating a "block".
Note: The above behavior of block layout changes if the containing block's writing-mode is set to value other than the default value.
Note: HTML (HyperText Markup Language) elements historically were categorized as either "block-level" elements or "inline" elements. As a presentational characteristic, this is now specified by CSS.
In this article
Examples
In this example, two paragraph (<p>) elements are put in a <div>.
The paragraph(<p>) elements are block-level by default. That is why they are displayed in block layout:
See also
- Related glossary terms:
- Block formatting context
displaywriting-mode