Re: [VE][70] Error Message Feedback

On Sun, 29 Dec 2002 arif@mohammedarif.com wrote:

> When i check my XHTML 1.0 validator i got this error message.
- -
>   1.. Line 6, column 69: end tag for "meta" omitted, but OMITTAG NO was specified
>
>   ...ontent="Promoted and Designed by Mohammed Arif">
>
>    You may have neglected to close a tag, or perhaps you meant to
>    "self-close" a tag; that is, ending it with "/>" instead of ">".

The explanation tells what you need to do: in XHTML (which you have
decided to use) all elements must be explicitly closed with end tags, but
your meta and link elements have no end tags. The recommended way is to
use what the message calls "self-closing", i.e. use a tag that acts both
as an opening and as a closing tag. For this you use "/>" instead of ">"
as the message suggests, e.g.

<meta content="ALL" name="ROBOTS" />

(This also illustrates another fix that you need to make: in XHTML, all
element names must be written in lower case.)

The message is somewhat misleading since it confuses tags with elements
(which is common, but surprising in a validator's message). This is not
about closing a tag (the ">" character surely closes a tag) but about
closing an element.

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

Received on Wednesday, 29 December 2004 15:03:06 UTC