HTML element: <div>
The <div> element is a block-level grouping element. In conjunction with the id and class attributes applied to other elements, the <div> element provides a means of grouping a block of content and tailoring its appearance with styles.
Common attributes
The <div> element supports the class, dir, id, lang, style, and title attributes.
For more information, see Common attributes.
Event attributes
The <div> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.
For more information, see HTML event attributes.
Parent topic: HTML elements