Re: [VE][63] <META />

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

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Sunday, 28 January 2007 07:27:57 UTC