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

Re: [VE][108] - "id" as Attribute in Title Tag

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 4 Sep 2010 16:38:38 +0300
Message-ID: <D3B0E33189C5489982195BA592898E8E@JukanPC>
To: <www-validator@w3.org>, <rolf@just-in-mind.se>
rolf@just-in-mind.se wrote:

> We get the error message - - -> there is no attribute "ID"
> for:
> <title id="title"> . . . . . </title>
> According to www.htmlref.com, "id" is a valid attribute.

It is in XHTML, but not in HTML 4.01, so apparently your document declares 
an HTML 4.01 doctype.

This is hardly a reason to move to XHTML, though. In which context would you 
possibly want to use an id attribute on the <title> element? The element is 
uniquely determinable anyway, since only one <title> element is allowed in a 

The site you mention is not an authoritative reference, and it does not look 
like a handy practical reference either. For example, they say "The title 
should be the first element found in the head", even though HTML syntax does 
not impose such a restriction, and such placement can even be dangerous. (If 
you use a <meta> element to declare document encoding, then surely that tag 
should precede the <title> element if the latter contains any non-ASCII 

Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Saturday, 4 September 2010 13:39:17 UTC

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