W3C home > Mailing lists > Public > www-validator@w3.org > January 2007

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

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 28 Jan 2007 09:27:29 +0200 (EET)
To: "Mellem, Dan" <Dan.Mellem@pomona.k12.ca.us>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0701280921340.15205@mustatilhi.cs.tut.fi>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:23 GMT