You are here: Re: quick syntax question « HTML « IT news, forums, messages
Re: quick syntax question

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация