|
Posted by Joost Diepenmaat on May 2, 2008, 3:21 pm
Please log in for more thread options
> Fri, 02 May 2008 19:49:36 +0200, /Joost Diepenmaat/:
>>
>>> Hyper-link elements - HTML <A> elements with 'href' attribute
>>> specified. <A> element without 'href' is not a hyper-link so it is
>>> perfectly possible to use it in place of SPAN, also.
>>
>> But then you'd have to differentiate between "pure anchors"; <a
>> name="something"> and "my special click thingies": <a
>> onclick="dostuff()">. Still better to use a span or a div.
>
> Is there anything ambiguous in differentiating a named anchor or link
> and an <A> element which does not specify an anchor? At least the
> HTML specification states (a bit down below)
> <http://www.w3.org/TR/html401/struct/links.html#edef-A>:
>
>> Authors may also create an A element that specifies no anchors,
>> i.e., that doesn't specify href, name, or id. Values for these
>> attributes may be set at a later time through scripts.
Now that you mention it, I'm not sure I stand by my initial
assessment. The main reason I still wouldn't use A here, is that I
generally use unqualified CSS styles for links, which would make all
of these uses look the same (though A NAME anchors can be empty).
--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
|