Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2012, 03:36 PM   PM User | #1
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
How to use the H1 for SEO

Hi,
I have heard that in SEO h1 receives more importance than other items like <a> or p or anything So I am trying to use h1 in a situation but I am not quite sure that will it be considered as standard and will google account for it in the same as an ordinary h1 tag.

Let me explain by an example for better understanding, I have something like this <li class="selected"><a href="#">All</a></li>
now what I think is legal is this to put h1 first and then use a tag so it will be like this <h1><a>All</a><h1> but the problem is that if I use this then my jquery thing stops working as it wants the a tag first.
So what I did is this <a><h1>All</h1></a> as you can see in this I used a first and h1 as second tag, so what do you think is it according to the standards and most important will GOOGLE look at it as a LINK or as a H1 tag?
cryoffalcon is offline   Reply With Quote
Old 06-30-2012, 04:26 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
if I use this then my jquery thing stops working as it wants the a tag first.
Customise your 'jquery' snippet to accept the changes.

Quote:
So what I did is this <a><h1>All</h1></a>
That will produce an invalid markup! You can't nest a block level element like <h1> inside an inline element like <a>
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 06-30-2012, 06:30 PM   PM User | #3
cryoffalcon
Regular Coder

 
Join Date: Oct 2010
Posts: 157
Thanks: 2
Thanked 1 Time in 1 Post
cryoffalcon is an unknown quantity at this point
Quote:
Originally Posted by abduraooft View Post
Customise your 'jquery' snippet to accept the changes.


That will produce an invalid markup! You can't nest a block level element like <h1> inside an inline element like <a>
thanks alot for your reply it is do worthy and I will keep that in mind.
cryoffalcon is offline   Reply With Quote
Reply

Bookmarks

Tags
seo

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:58 PM.


Advertisement
Log in to turn off these ads.