PDA

View Full Version : Help Html Validation




abirdstoes
Jan 21, 2005, 06:28 AM
Hello :)
Wondering if anyone could help me..please.
I'm having problems validating an electronic essay using http://validator.w3.org/
It keeps saying:

"Sorry, I am unable to validate this document because its content type is text/plain, which is not currently supported by this service.

The Content-Type field is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).

That you recieved this message can mean that your server is not configured correctly, that your file does not have the correct filename extension, or that you are attempting to validate a file type that we do not support yet. In the latter case you should let us know that you need us to support that content type (please include all relevant details, including the URL to the standards document defining the content type) using the instructions on the Feedback Page. "

I am a html beginner and would appreciate any help you have to offer, as i've been trying to firgure this out for 2 days now! The beginning of essay is as follows:

<!DOCTYPE Html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">

<html>
<head>
<meta http-equiv="content-type"content="text/html;charset=iso-8859-1" />
<title>The FoI Act: a positive step forward?</title>
</head>

Thank you in advance
Catherine :)



iGav
Jan 21, 2005, 06:49 AM
Try this...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>The FoI Act: a positive step forward?</title>
</head>

abirdstoes
Jan 21, 2005, 07:01 AM
Thanks for your help Gav. :)
But it still doesn't seem to working. It's a mystery.
Catherine

robbieduncan
Jan 21, 2005, 07:09 AM
The validator will only look at the content-type meta tag is there is not a content-type http header sent by the server :( Your server seems to be sending text/plain. Try using the local file upload option instead as this does not set the content-type.

abirdstoes
Jan 21, 2005, 07:26 AM
Hi robbieduncan,
Thanks for your advice.
I have been trying to validate my file by 'file upload' not by 'URL'.
Do you think some setting on my computer be changing it somehow?
Thanks
This html is really tricky!

robbieduncan
Jan 21, 2005, 07:35 AM
OK strange. What browser are you using (Safari I assume). What is the file extension? If it's not .html set it to .html. Note if you have the "Hide file extensions" setting on in Finder it might look like a .html file but really be .txt! If it's already .html I'm all out of suggestions!

iGav
Jan 21, 2005, 07:38 AM
Thanks for your help Gav. :)
But it still doesn't seem to working. It's a mystery.
Catherine

Well it validates ok... so something else is a miss somewhere.

Can you post a link to your file so we can have a tommy gander?? promise we won't steal your essay and hand it in as our own work. ;)

If you don't want to do that (understandable) have you tried running it through Balthisar Tidy (http://www.balthisar.com/site/index.php?module=ContentExpress&func=display&ceid=10)?

What software did you create it in??

G

abirdstoes
Jan 21, 2005, 08:51 AM
Hi Guys
You've been really helpful- thanks
But i really have to go out now.
Not solved prob yet, but you've been great.
Have a good weekend
Catherine
:) :) :)