The Document Division (<div>) HTML element is generic container for flow content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element (such as
) is appropriate.
|Content categories||Flow content.|
|Permitted content||Zero or more |
|Tag omission||None, must have both a start tag and an end tag.|
|Permitted parent elements||Any element that accepts flow content.|
|Normative document||HTML 5, section 4.5.13; HTML 4.01, section 7.5.4|
Like all other HTML elements, this element has the global attributes.
This element implements the
<div> <p>Any kind of content here. Such as <p>, <table>. You name it!</p> </div>
Any kind of content here. Such as <p>, <table>. You name it!