Florida State University: established 1851

Academic & Professional Program Services

Certified Webmaster Curriculum

XHTML 1.1 Element ( Tag ) and Attribute Reference

XHTML 1.1 Reference Index > Text Module Index

The div element ( tag )

contents

div: valid parent and child elements

valid parent elements
blockquote, body, button, dd, del, div, fieldset, form, ins, li, map, noscript, object, td, th
valid child elements
a, abbr, acronym, address, b, bdo, big, blockquote, br, button, cite, code, del, dfn, div, dl, em, fieldset, form, h1, h2, h3, h4, h5, h6, hr, i, img, input, ins, kbd, label, map, noscript, object, ol, p, pre, q, samp, script, select, small, span, strong, sub, sup, map, textarea, tt, ul, var

div: valid attributes

by attribute type
Core: class, id, title
Internationalization: dir, xml:lang
Events: onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

div: browser test

The following code sample:

Text outside the element. <div>Text within the element.</div> Text outside the element.

appears in your browser as:

Text outside the element.
Text within the element.
Text outside the element.