Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post

    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?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,862
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    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.

    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>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder
    Join Date
    Oct 2010
    Posts
    157
    Thanks
    2
    Thanked 1 Time in 1 Post
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •