Fotiman - 3:23 pm on Mar 15, 2012 (gmt 0)
I think you mean:
<a name="smith">content phrase</a>
And that will work in ALL versions of Firefox, assuming you don't have duplicate names.
It was also my understanding that it may only be used once per page
Well of course! If you're trying to link to a specific section of page and you're using an anchor that's not unique, then how will the browser know which section to link to? If you're creating multiple named anchors all with the same name, well, that's just invalid.
Page anchors "<a name>" allow links to specific portions of the page. As many time per page as you wish.
You can have as many named anchors as you want, but the names MUST be unique. I'll refer to the HTML Spec: [w3.org...]
The pages function fine with the standard URl absent the anchor. No loop and pages load immediately.
Not in the example I created. In my example, when I visited the page with no hash, it reloads over and over again. I verified this in several browsers.
If I insert those script lines in a page <head></head>
Than when the page is displayed, the script appears as text at the pages top.
With the script in a CSS file (which the same page utilizes) the script does not appear on page anywhere.
You need to put scripts inside <script></script> tags. If you're just putting that code in your head and it's not in <script></script> tags, then it will just appear in your page and will not actually DO anything (which is probably why you didn't see the page refreshing over and over... because the script wasn't running). Putting it in a CSS file is also incorrect, as it's not CSS.