XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / div

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

HTML 4.01 | HTML 5

div

<div> ... </div>

Identifies a generic section (a division) within a document. Elements within a section are considered semantically related. Typically, div gets its meaning from the attributes class, id, title or lang, which also enable access from scripts and selection by stylesheets.

Start/end tag

Required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • align="center |left |right"

    Deprecated. Not in HTML 5. Aligns the text within the element to the left, to the right or in the center of the page. Deprecated in favor of stylesheets.

Example

<div id="Zusammenfassung">
  <h1>Überschrift</h1>
  <p>Jetzt wird es richtig interessant ...</p>
</div>

 

> back to the alphabetical list of elements

   

 

 

 

back to top