Click here to get back home

HTML validation

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML validation Marinemasters 11-04-2004
|--> Re: HTML validation Inger Helene Fa...11-04-2004
Get Chitika Premium
Posted by Marinemasters on November 4, 2004, 12:41 am
Please log in for more thread options
I used the W3C markup and validation service for http://www.wasmundbindery.com
and got this reply back. I don't understand what it means or how to fix it.

The DOCTYPE Declaration in your document was not recognized. This probably
means that the Formal Public Identifier contains a spelling error, or that the
Declaration is not using correct syntax. Validation has been performed using a
default "fallback" Document Type Definition that closely resembles HTML 4.01
Transitional, but the document will not be Valid until you have corrected the
problem with the DOCTYPE Declaration.
This page is not Valid HTML 4.01 Transitional!
Below are the results of attempting to parse this document with an SGML parser.


Line 1, column 0: no document type declaration; implying "<!DOCTYPE HTML
SYSTEM>"



Posted by Inger Helene Falch-Jacobsen on November 4, 2004, 2:09 am
Please log in for more thread options
Marinemasters wrote:

> I used the W3C markup and validation service for http://www.wasmundbindery.com
> and got this reply back. I don't understand what it means or how to fix it.
>
> The DOCTYPE Declaration in your document was not recognized. ...

> This page is not Valid HTML 4.01 Transitional!

That's because your page has no doctype
declaration. Insert
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
at the very top of your document.

And while I'm at it: Replace your Javascript menu
with something that everybody can use, replace
font tags with css and use css for someting really
useful. The styling of your scrollbars is only
visible to Internet Explorer users.


--
Inger Helene Falch-Jacobsen
http://home.online.no/~ingerfaj/


Posted by Lars Eighner on November 4, 2004, 2:49 am
Please log in for more thread options
In our last episode,
the lovely and talented Marinemasters
broadcast on comp.infosystems.www.authoring.html:

> I used the W3C markup and validation service for
> http://www.wasmundbindery.com and got this reply back. I don't
> understand what it means or how to fix it.

> The DOCTYPE Declaration in your document was not recognized.

Because the document does not have a DOCTYPE declaration. Put one
in, according to which DTD you want to validate against.

> This probably
> means that the Formal Public Identifier contains a spelling error, or that the
> Declaration is not using correct syntax. Validation has been performed using a
> default "fallback" Document Type Definition that closely resembles HTML 4.01
> Transitional, but the document will not be Valid until you have corrected the
> problem with the DOCTYPE Declaration.

> This page is not Valid HTML 4.01 Transitional!
> Below are the results of attempting to parse this document with an SGML parser.


> Line 1, column 0: no document type declaration; implying "<!DOCTYPE HTML
> SYSTEM>"

This is a DOCTYPE declaration. It goes at the top of the document:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

The part in the quotes is the name of the DTD you think you are using
(or want to validate against). You can also have a second quoted part
giving a URI for where the DTD can be located. This is not usually
necessary for a very standard DTD, such as one of W3C DTDs.

--
Lars Eighner -finger for geek code- eighner@io.com http://www.io.com/~eighner/
If it wasn't for muscle spasms, I wouldn't get any exercise at all.


Posted by Mark Parnell on November 5, 2004, 10:58 am
Please log in for more thread options
declared in comp.infosystems.www.authoring.html:

> You can also have a second quoted part
> giving a URI for where the DTD can be located. This is not usually
> necessary for a very standard DTD, such as one of W3C DTDs.

But in the case of the Transitional DTD (you'd be better off with
Strict, IMHO), not including the URL triggers quirks mode in most modern
browsers.

http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html
http://diveintomark.org/archives/2002/05/29/quirks_mode

--
Mark Parnell
http://www.clarkecomputers.com.au


Posted by brucie on November 4, 2004, 11:06 am
Please log in for more thread options
In comp.infosystems.www.authoring.html Marinemasters said:

> I used the W3C markup and validation service for http://www.wasmundbindery.com
> and got this reply back. I don't understand what it means or how to fix it.
>
> The DOCTYPE Declaration in your document was not recognized.

<meta name="generator" content="Microsoft FrontPage 5.0">

its not really worth the effort to help you. FP will just screw it up
again but stick this at the top of your documents:

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

i strongly recommend dumping FP. if you want wysinwyg use an editor that
can do it without errors[1]:
http://www-3.ibm.com/software/webservers/hpbuilder/


[1]except for a few proprietary attributes that you should be using css
for anyway.

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.


Similar ThreadsPosted
HTML validation March 17, 2008, 11:45 am
New bulk HTML validation service available June 4, 2006, 10:23 am
html validation - html code help February 3, 2006, 12:50 pm
Rendering "special characters" and html validation February 28, 2005, 3:16 am
help with validation July 30, 2004, 5:22 pm
validation September 2, 2004, 8:15 am
validation November 28, 2004, 3:12 am
POST validation October 6, 2005, 2:45 pm
form validation November 28, 2004, 1:14 am
DTDs, www & validation December 10, 2004, 10:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap