---
title: Block and Inline Elements
---
## Block and Inline Elements
Let us understand them using below examples :
#### Code Sample with Output :

#### Block-Level Element :
A Block-level element occupies the entire space of the parent(container) such as `
` and `
` in the example .
Note that both `
` and `
` start from a new line each time, forming a **block-like** structure. Block-level elements begin on new lines.
Common **block-level elements** are `