Forum Moderators: mack

Message Too Old, No Replies

H1 questions

         

Matrixster

9:30 pm on Aug 31, 2005 (gmt 0)

10+ Year Member



Is there a limit on the number of H1's I can use on a page?
I am using them as news headlines.

Also:
Is it ok to do this....
<h1><a href-"#">link</a></h1>

jetboy

9:39 pm on Aug 31, 2005 (gmt 0)

10+ Year Member



Technically, no, but semantically, yes. Many would argue that a page should only have a single <h1> element, and in this case it should be 'News Headlines'. E.g.:

<h1>News Headlines</h1>
<h2>Latest News</h2>
<h3>Headline 1</h3>
<p>Headline 1 teaser text</p>
<h3>Headline 2</h3>
<p>Headline 2 teaser text</p>
<h3>Headline 3</h3>
<p>Headline 3 teaser text</p>

<hx> elements should be used to create a logical content hierarchy. If you have more than one <h1> it undermines this ideal.

There's no problem with having a link inside any kind of heading element.

mack

3:28 pm on Sep 1, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



As jetboy pointed out having more than one H1 tag removes some of the benefit from using them at all. H1 is there to specify an importaint section of text. If you use more then one then it will dilute the effect.

Mack.