The "h2" Element

Related:

Additional links:

Use heading elements to begin sections of new content. Do not use headings only for styling or presentation. The "h1" heading element is the most important heading and is usually rendered in the largest heading size, while the "h6" heading is the least important heading and is usually rendered in the smallest heading size.

Attributes for "h2"
TypeAttribute List
'Standard' Attributes(none)
Obsolete Attributes"align"

Notes

  • There are six levels of headings in HTML with H1 as the most important and H6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones.

Recommended Links

Accessibility Information & Tips

  • Video about the importance of using headings for accessibility: https://www.youtube.com/watch?v=AmUPhEVWu_E
  • Use the heading elements ("h1" to "h6") to begin each section of content. This assists user agents and assistive technology in letting users navigate based on headings. Avoid skipping heading levels. Use CSS to change heading appearance. Visit http://www.w3.org/TR/WCAG20-TECHS/H69 for more information.
  • Use the heading elements ("h1" to "h6") to identify headings. Do not use headings to simply change the appearance of text. Proper use of heading elements allows assistive technology and user agents to properly recognize heading text. Visit http://www.w3.org/TR/WCAG20-TECHS/H42 for more information.

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem