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