Go Back   CodingForums.com > :: Client side development > HTML & CSS

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 12-15-2006, 10:51 AM   PM User | #1
vinny388
New Coder

 
Join Date: Jan 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
vinny388 is an unknown quantity at this point
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?

Quote:
<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>
vinny388 is offline   Reply With Quote
Old 12-15-2006, 01:10 PM   PM User | #2
harbingerOTV
Senior Coder

 
Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,765
Thanks: 8
Thanked 123 Times in 121 Posts
harbingerOTV will become famous soon enough
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
harbingerOTV is offline   Reply With Quote
Old 12-15-2006, 05:14 PM   PM User | #3
ahallicks
Senior Coder

 
ahallicks's Avatar
 
Join Date: May 2006
Location: Lancaster, UK
Posts: 1,134
Thanks: 1
Thanked 57 Times in 55 Posts
ahallicks is on a distinguished road
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
ahallicks is offline   Reply With Quote
Old 12-15-2006, 05:49 PM   PM User | #4
Graft-Creative
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
Graft-Creative will become famous soon enough
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
__________________
'cna ne1 plz giv cod'
Graft-Creative is offline   Reply With Quote
Old 12-15-2006, 05:58 PM   PM User | #5
Carradee
Regular Coder

 
Join Date: Oct 2006
Location: Somewhere
Posts: 100
Thanks: 2
Thanked 3 Times in 3 Posts
Carradee is an unknown quantity at this point
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
Carradee is offline   Reply With Quote
Old 12-15-2006, 09:38 PM   PM User | #6
croatiankid
Regular Coder

 
croatiankid's Avatar
 
Join Date: Jan 2006
Posts: 665
Thanks: 1
Thanked 12 Times in 12 Posts
croatiankid is on a distinguished road
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
__________________
Hrvoje
Croatiankid designs
Downtown host
croatiankid is offline   Reply With Quote
Old 12-15-2006, 10:26 PM   PM User | #7
Graft-Creative
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
Graft-Creative will become famous soon enough
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
__________________
'cna ne1 plz giv cod'

Last edited by Graft-Creative; 12-15-2006 at 10:30 PM.. Reason: I like to waffle
Graft-Creative is offline   Reply With Quote
Old 12-17-2006, 10:17 AM   PM User | #8
vinny388
New Coder

 
Join Date: Jan 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
vinny388 is an unknown quantity at this point
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.
vinny388 is offline   Reply With Quote
Old 12-17-2006, 10:36 AM   PM User | #9
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 12-17-2006, 08:43 PM   PM User | #10
Graft-Creative
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
Graft-Creative will become famous soon enough
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
__________________
'cna ne1 plz giv cod'
Graft-Creative is offline   Reply With Quote
Reply

Bookmarks

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 04:49 PM.


Advertisement
Log in to turn off these ads.