The Web Design Group

h1 - Level-one Heading

Syntax <h1>...</h1>
Attribute Specifications
  • align=[ "left" | "center" | "right" | "justify" ] (horizontal alignment)
  • common attributes
Contents Inline elements
Contained in applet, blockquote, body, button, center, del, dd, div, fieldset, form, iframe, ins, li, map, noframes, noscript, object, td, th

The h1 element defines a level-one heading. A document generally should have exactly one h1 element to mark the most important heading.

The deprecated align attribute suggests the horizontal alignment for the heading on visual browsers. Possible values are left, right, center, and justify. Style sheets provide greater flexibility in suggesting alignment.

Visual browsers typically render h1 in a large, bold font. Authors can suggest a presentation for h1 through style sheets. The following CSS ruleset suggests a presentation for all h1 elements:

h1 {
  color: #c33;
  background: transparent;
  font-weight: bold;
  text-align: center

Authors should not choose a heading level based on the font size commonly used by visual browsers. The heading level should be chosen based on the heading's importance and placement in the document. An h1 is typically used as the main heading for a document.

More Information