- From: Mellem, Dan <Dan.Mellem@pomona.k12.ca.us>
- Date: Sun, 28 Jan 2007 13:55:50 -0800
- To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
- Cc: www-validator@w3.org
On Sat 1/27/2007, Jukka K. Korpela said: On Fri, 26 Jan 2007, Mellem, Dan wrote: >> Error [63]: "character data is not allowed here" > - - >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > - - >> <META http-equiv="refresh" content="30;http://www.w3.org" /> > > In practical terms, your mistake is that you're using the XHTML feature of > "self-closing" tags, the "/" before ">", in an HTML 4.01 document. Remove > the "/". Don't mix HTML 4.01 and XHTML. > > In theoretical terms, the "/" before ">" actually closes the <META> tag by > SGML rules, leaving the ">" as a lone character outside tags. Within a > <head> element, where we are here, no character data outside tags is > allowed. For a more detailed explanation, check > http://www.cs.tut.fi/~jkorpela/html/empty.html#preface Very interesting. Thank you for the explanation and the link. I've been (incorrectly) told that the XHTML format was compatible with HTML documents and never heard of this part of SGML. -Dan
Received on Sunday, 28 January 2007 22:03:34 UTC