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

Re: HREF attribute on A and AREA elements is not required

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Tue, 25 Sep 2012 07:27:39 +0100
Message-ID: <50614EDB.3000309@Rhul.Ac.Uk>
To: ian_bruce@fastmail.net
CC: www-validator@w3.org
I have a feeling that something like this has come
up previously.  Do you (for example) have an "alt"
attribute associate with the <area> ?

> If the area element has no href attribute, then the area represented by the element cannot be selected, and the alt attribute must be omitted.

There may may other attributes the presence of which would
also mandate an "href" attribute.

Philip Taylor

ian_bruce@fastmail.net wrote:

> While using the <http://validator.w3.org/> service to check an HTML5
> document ("<!DOCTYPE HTML>"), I encountered the following error message:
>      Element area is missing required attribute href.
Received on Tuesday, 25 September 2012 06:31:16 UTC

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