Account
Categories

Block elements


Definition:

Block elements are those HTML elements that create a full-width section.

They start from a new line, and each block element appears on a separate line, so the next element always starts from the next line.

They have both opening and closing tags.

There are some listed block elements as follows:

Syntax:

<tagname>Your content goes here</tagname>

Example:

<div>This is an example of a block element.</div>

Output:

This is an example of a block element.