h1 tags and hiding the text (Full Version)

All Forums >> [Web Development] >> Search Engine Optimization and Web Business



Message


loversinc -> 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 -> 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




dpf -> 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)




Tailslide -> 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.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125