Supported Browser

HTML Div Tag

The HTML <div> tag defines sections in HTML documents, serving as containers styled with CSS or controlled with JavaScript. It’s easily customized using class or id attributes and can contain various content.

Note: Browsers add line breaks before and after <div> elements by default.

Similar Reads

Div tag Usage:

The div tag is the block-level tag.It is used for applying styles and layout structure

1. Using class:

We can use class on that particular div and apply CSS either inside a