HTML

HTMLDivElement

HTMLDivElement <div>

The HTMLDivElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. In an HTML document, the <div> tag designates a division or section. The HTML <div> tag is used to group HTML elements, which are subsequently given a container and given a CSS or JavaScript. The class or id attribute makes it simple to decorate the <div> tag. The <div> tag is open to any kind of content!
Note: By default, browsers always place a line break before and after the <div> element.

Browser Compatibility

Element Chrome Edge Firefox Safari Opera
<div> Yes Yes Yes Yes Yes