Click here to get back home

Document seems invalid, but validates as HTML 4.01 strict

 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
Document seems invalid, but validates as HTML 4.01 strict Bruno Schneider 09-04-2008
Posted by Bruno Schneider on September 4, 2008, 3:01 pm
Please log in for more thread options


I've seen this page, that seems invalid to me. Doctype is incomplete
and it does not have a <body> tag. However, W3C validator validates it
as HTML 4.01 strict, even when I force the DOCTYPE. I think it should
be a bug in the validator, but perhaps, I missed something. What do
you think?

Page:
http://www.bcc.ufla.br/~lpgomes/

Validator:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bcc.ufla.br%2F~lpgomes%2F

Posted by Peter J Ross on September 4, 2008, 3:18 pm
Please log in for more thread options


In comp.infosystems.www.authoring.html on Thu, 4 Sep 2008 12:01:09

> I've seen this page, that seems invalid to me. Doctype is incomplete

That's unusual, but the result seems to be that the validator treats
it as "strict".

> and it does not have a <body> tag.

<body> can be implied, not specified, in HTML. HTML is a subset of
SGML, not XML.

> However, W3C validator validates it
> as HTML 4.01 strict, even when I force the DOCTYPE. I think it should
> be a bug in the validator, but perhaps, I missed something. What do
> you think?

I think it's nice to see an 18-year-old sharing his photos somewhere
other than crap sites like myspace or facebook.

I think it's also nice that the W3C validator takes "strict" as its
default.

The site would benefit from abandoning tables for layout, of course.

> Page:
> http://www.bcc.ufla.br/~lpgomes/
>
> Validator:
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bcc.ufla.br%2F~lpgomes%2F

--
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator

Similar ThreadsPosted
Re: is invalid html 4 strict? June 21, 2008, 1:43 pm
Re: is invalid html 4 strict? June 21, 2008, 6:15 pm
A HTML document can be converted to XHTML document. January 31, 2005, 8:58 am
page validates and renders in FF, but in IE 6 and 7 it has extra padding. Why? February 12, 2007, 10:00 pm
W3C HTML Validator Error - Invalid content-type November 13, 2004, 1:48 am
Is there a difference between html document and html file? May 15, 2008, 10:05 am
How does a browser parse an html document? January 25, 2006, 9:25 am
Document trailers : can anything legitimately follow August 6, 2004, 5:36 pm
How can I dynamically add file links to a html document? May 31, 2005, 7:40 am
How do redirects influence the base URL of an HTML document November 6, 2007, 3:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap