Just replace the string "name=" with "id=". You can link locally to any id, like:
<div id="blah" ...
or
<a id="bleh" ...

Dave