Forum Moderators: open

Message Too Old, No Replies

XHTML & META

Keywords to be specific

         

Knowles

1:07 am on Jun 21, 2002 (gmt 0)

10+ Year Member



What exactly are the rules?
I am wanting to add <meta name="keywords" content="blah">
But I am getting a non validation on it. Its saying something about double quotes. So I started digging in my books and online and I cant find where the name="keywords" is supported in XHTML is it supported? Is it just homesite giving me funky errors?

papabaer

1:31 am on Jun 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Knowles,

That IS the correct format (with the closing forward / included): <meta name="keywords" content="keywords go here no commas please" />

And it is valid XHTML. Where are you getting your error message from? Homesite/Tidy or the W3C validator?

korkus2000

1:43 am on Jun 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the site in your profile your meta is:

<meta "name="description" content="

Get rid of the quote before name to be:

<meta name="description" content="

That should validate.

You also seem to switch back and forth between double and single quotes for html tag attributes. I would stay to double quotes for all. Make sure you quote all of your attributes also.

Knowles

1:15 pm on Jun 21, 2002 (gmt 0)

10+ Year Member



papabaer it is from homesite not w3c I was just tring to find out if it was allowed I couldnt find any info on saying keywords was allowed for meta.

korkus2000 thanks for the find. I am trying to get it all set up before going to an XHTML DTD. As for that extra quote I am not sure where that came from Ill have to find it! Ill have to look at the switching between double and single quotes as well I normally only use a Double.