Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
I am trying to use <h1> tags on my site as page title but I want this title to be linkable .Which one is better in terms of SEO?
<h1> <a href=""> My Title </a> </h1>
<a href=""> <h1> My Title</h1> </a>
According to web standards you aren't allowed to put block elements into inline elements.
As h1 is a block element and a is an inline element the correct way is <h1><a href="#">My Title</a></h1>
In HTLM5 this has changed. Both examples will validate - validator.w3.org
SEO (Search Engines) does not Prioritize that how you have used your tags but it checks your contents even your internal and external href links. like as following. And Tags best practice is checked by W3C.http://screencast.com/t/U6BRfBVYRAnd2nd thing If you are using General Css how it effects and if your priority is
than it should be in side the . http://screencast.com/t/g9ev1GyaG
It depends
If you are using the HTML5 there are not difference
if you are using non HTML5 the case2 is absolutely wrong
This is the correct way
<h1><a href="#">My Title</a></h1>
Also use h1 for main heading only ....All the subheading should be h2, h3 etc. This is best SEO practice ;)
In HTML5 both cases are the same since it has block-level, otherwise in case1 you will get only the line "My Title" clickable, in case2 the whole h1 area will be clickable,
But anyway I would use case 1 for easier code navigation and more neatness
Case One is the correct way as it complies with the HTML Standard.
Case1 is the better option.
Case1 is used for better results in SEO
As <h1> tag takes a defined designation for SEO, you should use anchor tag inside it so that Google Bot will be able to read Title of the page.
Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?