- From: Paul Stanley <pauls@cox-internet.com>
- Date: Fri, 15 Feb 2002 11:37:18 -0600
- To: "www-validator" <www-validator@w3.org>
Ahh...thanks. I had mistakenly thought that the three possibilities for DTDs were simply hierarchical. It's working now. ----- Original Message ----- From: "Philip TAYLOR" <P.Taylor@Rhul.Ac.Uk> To: "Paul Stanley" <pauls@cox-internet.com> Cc: "www-validator" <www-validator@w3.org> Sent: Thursday, February 14, 2002 5:26 PM Subject: Re: Newbie just getting his feet wet... > Paul -- You are using the wrong DTD; the one you have selected > is specifically for FRAMESET documents, which by definition may > not contain a <BODY>; you should use (from memory, so may be > off-by-one) > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > Philip TAYLOR, RHBNC. > -------- > [snip] > > > I made the corrections that John > > [W3C] HTML Validation Service Results > > > > URI: > > Server: Zeus/3.4 > > Detected Character Encoding: utf-8 > > Select Character Encoding: > > Current Doctype: HTML 4.0 Frameset > > Select Doctype: > > Options: Show Source Outline Parse Tree ...no attributes > > > > > > Below are the results of attempting to parse this document with an SGML parser. > > > > * Line 11, column 5: > > > > <body> > > ^ > > > > Error: element "BODY" not allowed here; check which elements this element may be contained within > > > > * Line 15, column 6: > > > > </html> > > ^ > > > > Error: missing a required sub-element of "HTML" > > > > Sorry, this document does not validate as HTML 4.0 Frameset. > > > > If you use CSS in your document, you should also check it for validity using the W3C CSS Validation Service. > > > Below is the source input I used for this validation: > > > > 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd"> > > 2: > > 3: <html> > > 4: > > 5: <head> > > 6: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> > > 7: <meta name="Author" content="Paul C. Stanley"> > > 8: <title>Test Page</title> > > 9: </head> > > 10: > > 11: <body> > > 12: <p>test text</p> > > 13: </body> > > 14: > > 15: </html> > > > > > > Gerald Oskoboiny > > Last modified: Date: 2001/09/14 04:13:13 >
Received on Friday, 15 February 2002 14:40:10 UTC