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

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 UTC