W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2005

[whatwg] [WA1] The a element could be empty

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 03 Sep 2005 00:07:16 -0400
Message-ID: <43192174.4020604@inkedblade.net>
S. Mike Dierken wrote:
>>An empty <a> element is semantically meaningless.
> An <a> element can be a target of a link - it is addressable via a URI. Does
> that count as meaningless?
> See http://www.w3.org/TR/REC-html40/struct/links.html#h-12.1
> The destination anchor of a link may be an element within an HTML document.
> The destination anchor must be given an anchor name and any URI addressing
> this anchor must include the name as its fragment identifier.
> Destination anchors in HTML documents may be specified either by the A
> element (naming it with the name attribute), or by any other element (naming
> with the id attribute).

The A element no longer has a name attribute in HTML 5; the 'id'
attribute is a much better design, and is already well supported.


Received on Friday, 2 September 2005 21:07:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC