Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 08-05-2011, 06:49 PM   #1
CEO of BoltWebHosting.com
War Room Member
 
Christian Little's Avatar
 
Join Date: Feb 2011
Location: Vancouver, Canada
Posts: 526
Thanks: 53
Thanked 113 Times in 93 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Hyperlinked header tags, what's the proper order?

We're doing a major redesign of our site right now to make it more seo-friendly, and an interesting question has risen.

We are going to have some hyperlinked header tags on some pages, and I'm trying to figure out if we should have the hyperlink inside or outside of the header tags.

Example 1:
HTML Code:
<h1><a href="somewhere.html">Some Important Topic</a></h1>
Example 1:
HTML Code:
<a href="somewhere.html"><h1>Some Important Topic</h1></a>
Which if these is the most beneficial for SEO purposes?

We've always done it as shown in Example 1, but I'm curious to know if it would be better to go with Example 2 instead. Both are valid in HTML and such, but what will make it more Google-friendly?

Most wordress themes and other websites I've ever looked at seem to go with Example 1 as well. So I'm inclined to think that's the better way of doing it.

[WSO] Amazing Web Hosting Discounts Exclusive to Warriors
Providing quality, fast, and secure web hosting services since 2009

Bolt Web Hosting provides Shared Web Hosting, Reseller Web Hosting, and VPS Hosting services.
Christian Little is offline   Reply With Quote
Old 08-05-2011, 11:15 PM   #2
Senior Warrior Member
War Room Member
 
InitialEffort's Avatar
 
Join Date: Jun 2010
Location: Minnesota
Posts: 1,104
Thanks: 16
Thanked 117 Times in 87 Posts
Default Re: Hyperlinked header tags, what's the proper order?

I use example number 1. No real explanation why.

InitialEffort is offline   Reply With Quote
Old 08-06-2011, 03:00 AM   #3
Warrior Member
 
Join Date: Apr 2011
Posts: 9
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Hyperlinked header tags, what's the proper order?

Example no 1

phupha is offline   Reply With Quote
Old 08-06-2011, 08:30 AM   #4
CEO of BoltWebHosting.com
War Room Member
 
Christian Little's Avatar
 
Join Date: Feb 2011
Location: Vancouver, Canada
Posts: 526
Thanks: 53
Thanked 113 Times in 93 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Hyperlinked header tags, what's the proper order?

It's Example 1. I was talking to somebody about it last night after posting the question here, and they told me that Example 2 is invalid HTML.

I put together a test page and checked it with the W3 validator, and it is indeed invalid HTML. Apparently HTML standards don't allow you to have an H tag inside of a hyperlink, even though it does work. Having the hyperlink inside the H tag appears valid to the W3 validator though.

[WSO] Amazing Web Hosting Discounts Exclusive to Warriors
Providing quality, fast, and secure web hosting services since 2009

Bolt Web Hosting provides Shared Web Hosting, Reseller Web Hosting, and VPS Hosting services.
Christian Little is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
header, hyperlinked, order, proper, tags

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:47 PM.