|
Posted by Jonathan N. Little on 11/25/40 11:50
Luigi Donatello Asero wrote:
> "dorayme" <doraymeRidThis@optusnet.com.au> skrev i meddelandet
> news:doraymeRidThis-A10719.08581518062006@news-vip.optusnet.com.au...
>> In article <4E%kg.5257$E02.1728@newsb.telia.net>,
>> "Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote:
>>
>>> Which one is "strict"?
>> Ask a precise question. Or I won't put in a sweet word for you
>> with Heather...
>
>
> You wrote about the advantages/disadvantages
> of using one of the following alternatives
> <a name="..">description</a>
> or <a id="..">description</a>
> so I asked
> whether the former or the latter complies with the requirements to validate
> as HTML 4.01 strict.
> Or are they both accepted?
>
Both are acceptable, just that the latter maybe preferred because you
don't have to add an 'A' element solely for providing an anchor, but can
assign an anchor via the id of the referenced block.
Instead of this:
<!-- addition of extra element solely for creating anchors -->
<a name="myAnchor"> </a><h2>Some section</h2>
<p>....
use this:
<!-- Use the existing H2, not extra element needed -->
<h2 id="myAnchor">Some section</h2>
<p>....
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|