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
Received on Thursday, 28 January 2010 21:54:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:00 UTC