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

Thread: Hidden <h> tags

  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hidden <h> tags

    Just been looking at a site and noticed something rather strange in the source code. The weird bit is in bold. This <h3> tag does not show up in the website, neither does the <h4>tag. Surely this is classed as hidden text, or am I missing something?

    <div id="wintersharedbg">
    <h2>Hosting</h2>
    <!--<h3>Hosting so flexible, it's bound to fit</h3>-->
    <ul>
    <li>Fully featured</li>
    <li>Windows &amp; Linux</li>
    <li>Free setup &amp; .uk domain</li>
    <li>No annual contract</li>
    <li>Instant activation</li>
    <li><strong>&pound;50</strong> of Google AdWords</li>
    </ul>

    <h4><span>From just &pound;5.95 a month, get upto 3 months free.</span></h4>
    </div>

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,785
    Thanks
    8
    Thanked 131 Times in 129 Posts
    the h3 shouldnt since it's commented out but the h4 shuld unles something in the css tells it hide.

    as for t being hidden text. might be a fine line. depends on if they do that on everypage as if to purposely hide more key words.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    The coeder could have, for example, set h4 to display: none; for some reason... and yeah, the first one is only a comment so wouldn't show up on a page.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #4
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Doubt it's a case of keyword spamming, the wording is too naturalistic.

    How do you mean: the h4 doesn't show up? Maybe they used an image replacement method

    ..fairly common practice these days.

    Gary

  • #5
    Regular Coder
    Join Date
    Oct 2006
    Location
    Somewhere
    Posts
    103
    Thanks
    4
    Thanked 3 Times in 3 Posts
    It might be a piece of coding they don't want to appear yet or that they've used previously, will use again, but don't want now; turning it that one h3 into a comment (that's what the "<!--" and "-->" are doing) and/or setting h4 to not display are leaving the code in there for later use, evidently.

    -'Dee

  • #6
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    My first thought was black hat SEO, but since it's a comment I think it wouldn't do any good. black hat SEO usually involves keywords in the content of the page, but set to display:none

  • #7
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by croatiankid View Post
    My first thought was black hat SEO, but since it's a comment I think it wouldn't do any good. black hat SEO usually involves keywords in the content of the page, but set to display:none
    Nah, this example has never seen Black-hat. There's not enough juicy keywords within the < h> tags: 'hosting' and 'free' are the only valuable ones I can see - I reckon it's all perfectly innocent

    Black-hat wouldn't use well written, choppy wording like that - it'd be chock full of keywords within < a> tags.

    Gary
    Last edited by Graft-Creative; 12-15-2006 at 10:30 PM. Reason: I like to waffle

  • #8
    New Coder
    Join Date
    Jan 2006
    Posts
    80
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your replies.

    Just never noticed this before and found it a little strange.

    Yes, the site does use a lot of images, and yes some of these images appear on page where the <h> tags appear in the source code.

    Is there any value in this? I mean, yes images look nice, but if the <h> tags are not visible 'on page' then surely they aren't really working for the site.

  • #9
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,676
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Look at http://csszengarden.com, they replaced the headlnes with images on a lot of designs. The value of this is that you can have nice images for the "normal" viewers (computer screen) and, for example, a print stylesheet that is printing the headlines, not the images, and you'll still have an accessible website that can be read with handheld devices or screen readers.

  • #10
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by vinny388 View Post
    if the <h> tags are not visible 'on page' then surely they aren't really working for the site.
    Well, yes they are - they are giving the code a semantically correct structure and order.

    Image replacement techniques, IMO, are some of the greatest tools in the persual of seperating content from presentation.

    Gary


  •  

    Posting Permissions

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