Won't start the validate process

C

Chris Leonard

Hi.

I've had a go at writing one of my web pages in the correct format, looking
at comments made in this group and also by using the w3c validater. My
problem is the validater keeps giving me the following message:

I was not able to extract a character encoding labelling from any of the
valid sources for such information. Without encoding information it is
impossible to validate the document. The sources I tried are:

What does it mean and how do I stop it happening please ?

TIA

Chris

The page I want to validate (I'm sure it has some errors in) is
http://www.theleonardfamily.co.uk/newguest/gbread.asp

There are numerous pages on my site but this is the first one I've tried to
write in the correct format with the use of style sheets as well. So, if
anyone would like to add some CONSTRUCTIVE criticism please feel free to
point out what I'm sure will be the numerous errors.
 
J

John W.

Chris Leonard said:
Hi.

I've had a go at writing one of my web pages in the correct format, looking
at comments made in this group and also by using the w3c validater. My
problem is the validater keeps giving me the following message:

I was not able to extract a character encoding labelling from any of the
valid sources for such information. Without encoding information it is
impossible to validate the document. The sources I tried are:

What does it mean and ...
how do I stop it happening please ?
Change topside sourcecode as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>

and add following
<head>
....
<meta
http-equiv="content-type"
content="text/html;
charset=iso-8859-1">
....
</head>

Try again :)



John OO
--

<http://webcel.nl/>
<http://www.webcel.nl/bayshop/shop/bayshop.html>

"Time is what prevents everything from happening at once"
- John Archibald Wheeler -
 
A

andy johnson

Hi.

I've had a go at writing one of my web pages in the correct format, looking
at comments made in this group and also by using the w3c validater. My
problem is the validater keeps giving me the following message:

I was not able to extract a character encoding labelling from any of the
valid sources for such information. Without encoding information it is
impossible to validate the document. The sources I tried are:

What does it mean and how do I stop it happening please ?

TIA

Chris

The page I want to validate (I'm sure it has some errors in) is
http://www.theleonardfamily.co.uk/newguest/gbread.asp
You have this:

<HTML>
<HEAD>
<TITLE>Chris's Guest Book</TITLE>
<LINK REL="stylesheet" type="text/css" href="default.css" />
<script language="JavaScript" src="jscript.js"></script>
</HEAD>


Try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>

<head>

<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">

<meta name="description"
content="Chris's guest book yada yada yada">

<meta name="keywords"
content="chris, guest, book, guest book, etc etc etc, ">

<META NAME="COPYRIGHT" CONTENT="2003 Chris somebody">

<TITLE>Chris's Guest Book- Leave me a note!</TITLE>

<LINK REL="stylesheet" type="text/css" href="default.css" />

<script language="JavaScript" src="jscript.js"></script>

</HEAD>

Googling "html head" and "meta tags" will yield more...


-
Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
 
D

David Dorward

andy said:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

No need to encourage obsolete markup.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
Suboptimal:
http://www.htmlhelp.com/tools/validator/charset.html

<meta name="description"
content="Chris's guest book yada yada yada">

Only if something you specify is more useful then a fragment of the document
around the searched keywords.
<meta name="keywords"
content="chris, guest, book, guest book, etc etc etc, ">

Pretty much pointless.
<META NAME="COPYRIGHT" CONTENT="2003 Chris somebody">

Waste of time.
<TITLE>Chris's Guest Book- Leave me a note!</TITLE>

An instruction to leave a note isn't really apropriate in the title of a
document that displays other people's notes.
<LINK REL="stylesheet" type="text/css" href="default.css" />

Lose the "/" in an HTML document.
<script language="JavaScript" src="jscript.js"></script>

The language attribute is deprecated.
 
A

andy johnson

David,

What you said might be valid, but the poster asked:

There are numerous pages on my site but this is the first one I've
tried to write in the correct format with the use of style sheets as
well. So, if anyone would like to add some CONSTRUCTIVE criticism
please feel free to point out what I'm sure will be the numerous
errors.

So, in the interest of seeing this guy grow and learn, I posted what I
posted. Remember BABY STEPS??? What I wrote works, and works well.


-
Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
 
A

andy johnson

On Wed, 10 Sep 2003 16:03:00 -0700, andy johnson

forgot to tell you to add:

TYPE="text/javascript" to the js links...



-
Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
 
D

David Dorward

andy said:
So, in the interest of seeing this guy grow and learn, I posted what I
posted. Remember BABY STEPS??? What I wrote works, and works well.

Most of what you wrote works badly and is entirely unnecessary
 
E

Eric B. Bednarz

David Dorward said:
John W. wrote:

No! That fails to trigger standards mode in Microsoft's file manager.

Since when?

(besides, triggering oxymoron mode is totally out of control
of $author with UAs that just sniff for the first line of the document
instance, and since different ad hoc heuristics apply anyway for
different tagsoup manglers, the best thing to do in terms of stable
results is to omit the declaration altogether; with a default entry for
the root element in the catalog file you can still have e.g. SP report
errors in respect to the implied declaration subset -- you need to make
the root element explicit in the source then, of course -- without
formal validation)
 
D

David Dorward

Since when?

Hmm... err... Looks like I should check my facts rather then believing the
people who claim it takes a URI in the doctype to trigger it.

It appears that applies to transitional, not all doctypes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top