Has Moziila (1.2.1) and Opera (7.0) stopped supporting anchor names
There are docs around on using ID, but none that say <a name> is a depreciated element. The descritons on ID are pretty weak. Searching forums for "a name" gives some pretty wacky returns!
It validates as 4.01 and works in IE. In Mozilla, it works only if the <a name> is defined in the html prior to a <a href> call. Opera is nada...
No # in the anchor name ;)
If you check the source; you see that the name attribute is
The <A name=edef-A>A</A> element
Yep! That fixed it. Simple things get me more often than complicated 1s Thanks.
If you use code (exactly) like this:
It may be usefull for you to know that you can link to any element with an ID using href="#xxx"
<p>text text text</p>
<p><a href="#start">Go to Start</a></p>
I've kind of hung away from ID. It may be outdated now, But at 1 time ID was supported real well.
I may need to relook into it. Thanks.
Actually, id is supported better than "name" is nowadays, except for form elements. The "name" attribute has been dropped in the XHTML spec for everything but form objects.
especially since search engines rate the page higher when there are links with words on the page...i've found i have started to use a lot more <a href="#name"> tags!
good tip with the ID attribute in elements, thanks!