Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

marked as duplicate by w3d, Lèse majesté, Christofian Dec 30 '12 at 21:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Linking the heading in this way isn't entirely pointless... webmasters.stackexchange.com/questions/23917/… –  w3d Dec 30 '12 at 20:29

Browse other questions tagged or ask your own question.