The <div> element

There are two kind of elements in HTML.

Element TypesDescription
Block level elementsRendered starting on a new line (e.g. <p> or <hr>)
In-line elementsRendered on same line (e.g. <b> or <q>)

The HTML <div> element is the most generic block-level element. This tag is used for defining a section of your document and also we can group large sections of HTML elements together. This element is best to attach a CSS to a section of a web page.

<div align="center" title="This is a tooltip">
This is a division block.
Related Tutorial
Follow Us #