HTML and CSS Reference
In-Depth Information
Name
div
Synopsis
<div> . . . </div>
Denotes a generic “division” or container for content within the flow of the document. Ele-
ments contained within a div are treated as a semantic group. The div element is typically
given meaning with the class , id , title , or lang attributes, which also allow it to be access-
ible to scripts and selected in stylesheets.
Usage
Categories:
Flow content, palpable content
Permitted contexts:
Where flow content is expected
Permitted content:
Flow content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Example
<div id=" summary ">
<h1>In Closing</h1>
<p>We can summarize as follows...</p>
</div>
Search WWH ::




Custom Search