NOT that one should be using an anchor for that anymore. The format for doing it with an anchor:
<a name=“pricing”></a>
Is supposed to have been completely replaced by ID’s… and you can put ID’s on ANYTHING, not just anchors and still have it work…
so if say… “Pricing info” was a heading…
<h2 id=“pricing”>Pricing Info</h2>
… doing:
<a href=“#pricing”>Go to Pricing</a>
… would work just fine. In any case, where you’re messing up is trying to point at a href – that’s never going to work. href’s point at URL’s, and with a hash at ‘name’ or ‘id’…
Which is why I would say find some element wrapping your pricing, and give it an ID to point at, instead of wasting time putting an empty anchor in there. Who knows, you might already have a perfectly good ID in place you could point at! It’s why I have a number of 'standard ID’s" I use on elements – #mainMenu, Content, #footer – that way on my accesskeys menu I can do href=“Content” title=“skip to content” accesskey=“3”