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