Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Should I link the main article heading? 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

@Samaraweera270

Posted in: #Html #Markup #Seo #Xhtml

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:
example.com/articles/article-title

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?

e.g.

<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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme