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

Re: Why is it not allowed to close the meta-tag?

From: David Dorward <david@dorward.me.uk>
Date: Thu, 28 Jan 2010 21:53:34 +0000
Cc: www-validator@w3.org
Message-Id: <E7DA847B-FAF7-4309-8983-54467E6BE3A4@dorward.me.uk>
To: Karina Bürger <k.b@tarife-vergleichen.com>

On 28 Jan 2010, at 11:49, Karina Bürger wrote:

> Hi there, i am the webmaster of http://www.tarife-vergleichen.com and have some troubles with the W3 validator. What is the error with this line of html: <meta name="description" content="some Text" /> The Validator does not like the closed tag.
> 
> Why is it not allowed to close the meta-tag?

Because you are validating against an HTML Doctype, and HTML does not use XML syntax. 

For meta elements the start tag is required, the end tag must be omitted and XML empty element syntax means something completely different.

-- 
David Dorward
http://dorward.me.uk
Received on Thursday, 28 January 2010 21:54:12 GMT

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