navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

h1 tags and hiding the text

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Search Engine Optimization and Web Business >> h1 tags and hiding the text
Page: [1]
 
loversinc

 

Posts: 28
Joined: 4/26/2006
Status: offline

 
h1 tags and hiding the text - 5/12/2006 15:54:17   
hi

i got recomended to use this code in another forum
<html>
<head>
<title>your title</title>
<style type="text/css" media="all">
h1 {display: none;}
</style>
</head>
<body>
<h1>This will be invisible to normal browsers</h1>
...the rest of your code...
</body>
</html>

i've copied it onto every page on my site with one key phrase in the invisible bit.

is this wrong?
Nicole

 

Posts: 2843
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: h1 tags and hiding the text - 5/12/2006 15:58:11   
quote:

is this wrong?


I believe it may be, but there is a way of hiding an <h1> behind a banner which may be of some help. I haven't found how to do it yet but when I do I'll post it here.

Nicole

_____________________________

:)

(in reply to loversinc)
dpf

 

Posts: 7123
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: h1 tags and hiding the text - 5/12/2006 16:02:58   
quote:

is this wrong?
ask yourself one question: why are you doing it? ( and dont say because someone told me to)

_____________________________

Dan

(in reply to loversinc)
Tailslide

 

Posts: 6112
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: h1 tags and hiding the text - 5/12/2006 16:03:20   
I'd say a better way of doing it would be to use this technique:http://wellstyled.com/css-replace-text-by-image.html I've used this a lot. The trouble with using display:none is that some screenreaders can't see the hidden thing. If you're purely using your <h1> tag to stuff keywords then that might be a good thing! However if you're using it as a proper title (with your key phrase in there) then you want it to work with images off or for screenreaders too.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Nicole)
Page:   [1]

All Forums >> Web Development >> Search Engine Optimization and Web Business >> h1 tags and hiding the text
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts