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 10 of 10
  1. #1
    Regular Coder
    Join Date
    Jul 2009
    Posts
    194
    Thanks
    26
    Thanked 0 Times in 0 Posts

    <h1> - <h6> tags for seo

    I saw from many places that using h1 through h6 tags are good for seo. Can someone explain how does that work exactly?

    For example, right now on my site, if I have phrases that I want to appear as titles, I make their font bigger and bold etc.. I understand that I need to make these header tags instead. This includes titles of many articles displayed dynamically by php from mysql database. so would this help?

    I just want to know how this works so I can do the necessary corrections.

    Also can I use header tag together with formatting and it doesn't deteoriate or decrease its seo effect? such as <h1 style="font-color:green;"> etc.....

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Yes you can style header tags anyway you like. Its best to go in order from top to bottom. Usually your site title will be an h1. Page titles could be h2. Article titles to could be h3, and so forth. You don't have to use all of them. The headers are numbered for a reason, they specify their importance. Search engines don't care if they are styled or not. They just look at the tag itself.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I saw from many places that using h1 through h6 tags are good for seo. Can someone explain how does that work exactly?
    It doesn't, at least with regards to Google. Heading tags, in particular the H1 tag, are HTML elements that are traditionally thought to have more weight in search engine algorithms. This however is not true (I say that based on experiments designed explicitly to test the value of using v.s. not using them).

    You may wish to use them anyway, as they make for easier reading of code, are semantically correct tags for marking up headings, and other search engines may give them more weight.

  • #4
    Regular Coder
    Join Date
    Jul 2009
    Posts
    194
    Thanks
    26
    Thanked 0 Times in 0 Posts
    so for search engines other than google, do they also look at the weight of h1 vs h6 for instance? in tht case someone might use h1 for eveything and then give it a small font :P

  • #5
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    I don't know, I haven't experimented on those engines. Your suggestion though is exactly the reason why search engines would be likely not to assign extra weight to content marked up with H1 tags.

  • #6
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by ketanco View Post
    so for search engines other than google, do they also look at the weight of h1 vs h6 for instance? in tht case someone might use h1 for eveything and then give it a small font :P
    Using header tags correctly is part of writing semantic code, which is ultimately more important for a good signal to noise ratio in your code. Which in turn can lead to more favorable placement by the search engine.
    OracleGuy

  • #7
    New Coder
    Join Date
    Aug 2009
    Posts
    26
    Thanks
    1
    Thanked 3 Times in 3 Posts
    in my opinion you should not abuse those tags..
    h1 -- website name
    h2 - page title
    h2 - article heading & sub sections
    <strong> tags to highlight key words or phrases of importance..

  • #8
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tailender1 View Post
    in my opinion you should not abuse those tags..
    h1 -- website name
    h2 - page title
    h2 - article heading & sub sections
    <strong> tags to highlight key words or phrases of importance..
    I think the right h tags for a better SEO is:

    h1 - page/paragraph Title and also website name
    h2 - page/paragraph Sub-Title

    Use "paragraph" format for your content. No h-tags...

  • #9
    Regular Coder
    Join Date
    Nov 2007
    Posts
    110
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by ketanco View Post
    I saw from many places that using h1 through h6 tags are good for seo. Can someone explain how does that work exactly?

    For example, right now on my site, if I have phrases that I want to appear as titles, I make their font bigger and bold etc.. I understand that I need to make these header tags instead. This includes titles of many articles displayed dynamically by php from mysql database. so would this help?

    I just want to know how this works so I can do the necessary corrections.

    Also can I use header tag together with formatting and it doesn't deteoriate or decrease its seo effect? such as <h1 style="font-color:green;"> etc.....
    H tags are the main factor in on page optimization.. Do not know how much weighed in SEO... using style with header tag is not problem I thing.. better try to use style sheet instead of applying direct to it

  • #10
    Regular Coder
    Join Date
    Apr 2008
    Posts
    685
    Thanks
    15
    Thanked 105 Times in 104 Posts
    Also note the H1 heading should only be used once per page, some people use this for site titles, some for the page title, imo I think it should be used for the page title.

    The H2 tag can indeed be used multiple times per page and should be used to identify sub titles within the page topic. So the more subsections the further down the headings you'd go.

    So really you shouldn't have a H3 tag without a H2 tag and so on.

    It helps computers to understand what your page is about, including search engines although they place little ranking importance on them cause of the abuse factor.

    You can style these headings however you want, and it has no effect at all because afaik search engines do not look inside the CSS of your page, only the HTML markup.
    As suggested above it's best to use an external stylesheet and avoid inline styles if you can. You can refer to headings in your external stylesheet like so:

    Code:
    h1{
    font-size:30px;
    //other styles for h1 go here
    }
    h2{
    //h2 styles go here
    }
    etc...


  •  

    Posting Permissions

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