Welcome to WebmasterWorld Guest from

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

My anchor tags don't seem to work in Firefox/Safari.

anchor tag compability


buttercup 74

6:52 pm on Aug 6, 2008 (gmt 0)

5+ Year Member

I've created an FAQ type page - with anchor tags to zoom down to the relevant section from questions at the top.

It works fine in IE.
It's not working on my friend's Mac in both firefox and safari.

Any idea why it won't work in the other browsers?
Must be something simple....


[edited by: encyclo at 7:26 pm (utc) on Aug. 6, 2008]
[edit reason] no links to personal sites please [/edit]


7:01 pm on Aug 6, 2008 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Be sure you're using <a name="anchor"> and not <a name="#anchor">. The "#" is part of the link to an anchor, telling the browser "the target for this link is on this same page," and is not part of the anchor's name itself.


buttercup 74

7:13 pm on Aug 6, 2008 (gmt 0)

5+ Year Member

I was doing just that... tut tut.
I'm sure that will fix it, will upload it tomorrow and test.


buttercup 74

4:27 pm on Aug 7, 2008 (gmt 0)

5+ Year Member

oh dear.

Sadly, that's not fixed it.

I'm guessing that the other browsers don't like any other code between the <a> tags?
I have <span> font type tags in there.

could that be it?


3:08 pm on Aug 9, 2008 (gmt 0)

5+ Year Member

remove the span tag, most of the browsers not detecting span setting... or you can also check your CSS, you can also draw a link or ahref by using CSS... CSS is nowadays is a best tool while site compatibility, and this includes fonts, anchors, headings, etc.

Featured Threads

Hot Threads This Week

Hot Threads This Month