Summary

 < Day Day Up > 



Let's recap why in general, it's best to use heading tags (<h1> through <h6>) to introduce different sections on a page.

Method A:

  • Visual browsers will render the heading the same as normal text on the page when CSS is disabled or unavailable. Nonvisual browsers won't know the difference between the heading and normal text.

  • Search engines won't place greater importance over headings that are marked up with <span>.

  • We can style it uniquely, but we're locked into the heading class when adding similar headings in the future.

Method B:

  • Visual browsers will render the text only in bold and the same size as the default.

  • We can't style this heading uniquely from other text on the page.

  • Search engines won't place greater importance over headings that are marked up with <p> and <b> tags.

Method C:

  • Conveys meaning to the text contained within.

  • Visual and nonvisual browsers will treat the heading correctly regardless of any style that is associated with it.

  • Easily styled uniquely with CSS.

  • Search engines will place importance on keywords contained within heading tags.



 < Day Day Up > 



Web Standards Solutions. The Markup and Style Handbook
Web Standards Solutions: The Markup and Style Handbook (Pioneering Series)
ISBN: 1590593812
EAN: 2147483647
Year: 2003
Pages: 119
Authors: Dan Cederholm

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net