Possible Duplicate:
Anchor tag inside H1 or H1 inside achor tag : Which is better?
Why, on StackExchange sites, is the post title on the question page a link to itself?

Assuming, that I have an article page:


with the main content like:

<h2 id="main">Article title</h2>

Regarding the SEO and semantic reasons, should I wrap the H2 tag/content in link?


<h2 id="main"><a href="/articles/article-title" title="Article title content">Article title</a><h2>

or this way:

<a href="/articles/article-title" title="Article title content"><h2 id="main">Article title<h2></a>

(the H1 in this particular case is reserved for the topic of the whole website, and linked to the home page.)

As for the end user, clicking this link seems pointless, as this would just do a page refresh. But I sill see those headings linked all around.



Browse other questions tagged or ask your own question.