div

FilterElements

<div> ... </div>

Denotes a generic "division" within the flow of the document. Elements 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 accessible to scripts and selected in style sheets.

Start/End Tags

Required/Required

Specifications

  • HTML 4.01
  • HTML5

align=

Values: center | left | right
Deprecated. Not in HTML5. Aligns the text within the element to the left, right, or center of the page.
<div id="summary">
<h1>In Closing</h1>
<p>We can summarize as follows...</p>
</div>

Rendered Example


In Closing

We can summarize as follows...

The div element has no default rendering style. It must be styled with CSS.