PDA

View Full Version : W3 Validating..


duniyadnd
05-06-2003, 05:30 AM
:eek:

Trying my luck with W3 Validator. Unfortunately, I'm having problems right from the start of the page.

The first error is:

Line 22, column 6: end tag for element "HEAD" which is not open (explain...).
</head>

Which basically means that there is some tag within the <head></head> tags that does not end.

It turns out to be a css file I call in with the following command:

<link href="/css/main.css" rel="stylesheet" type="text/css" />

Now, I know the above is right, but it is not recognized by the validator, so how do I go about fixing this correctly?

Thanks
Duniyadnd

HairyTeeth
05-06-2003, 05:43 AM
The link element is located within the head tags?...

<head>
<link type="text/css" etc etc />
</head>

meow
05-06-2003, 06:00 AM
Originally posted by duniyadnd
:eek:

Which basically means that there is some tag within the <head></head> tags that does not end.


No, it means that there is an end tag for HEAD but no start tag or that some other error masks it so the validator doesn't recognize the <head> tag.

Are your DTD an XHTML one btw?

duniyadnd
05-06-2003, 08:53 PM
Yeah, you're right.. i wrote it backwards.

Using XHTML

giz
05-11-2003, 02:00 PM
If you were using plain HTML then the solution is to take out the final / from that <link blah blah /> tag.

Make sure that all attribute values are "quoted" especially any URLs.

The first unquoted / seen after <head> is interpreted as </head><body> you see.