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

> 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).

Received on Friday, 2 September 2005 20:07:46 UTC