Posted by dorayme on 08/15/07 02:07
In article <a52ap4-hoe.ln1@xword.teksavvy.com>,
"Chris F.A. Johnson" <cfajohnson@gmail.com> wrote:
> On 2007-08-14, Richard wrote:
>
> > But I got this "name" attribute from
> > http://www.w3schools.com/html/html_links.asp,
> > where it claims:
> ><quote>
> ><a name="tips">Useful Tips Section</a>
> >
>
> That usage is not recommended however; it is generally considered
> better to use the "id" attribute instead.
One reason it is better is that it is simpler to use/type.
Another is to avoid having to code to avoid hover effects on
"named anchors" which are really not appropriate. These hover
effects and other effects can easily creep in from the css sheet
which generally specifies anchors. You will find id_ing much
cleaner and simpler to use for the purpose.
--
dorayme
Navigation:
[Reply to this message]
|