HTML Div Tag | Div Tag | Div Tag Tutorial with Example

HTML Div Tag


Define : 
It is defined as a division or a section in an HTML document.
It is used as a container for HTML elements and which is then styled with CSS.
It is easily styled by using the class or id attribute.

For Example :


Output :
Browser Support
 All browsers are supported like opera, chrome, microsoft edge, firefox.

Global and Event Attributes
This tag also supports the Global and Event Attributes in HTML.

Default CSS Settings
Most browsers will display the <div> element with the help of CSS.

div {
  display: block;
}