Forum Moderators: open

Message Too Old, No Replies

What's the 'new' syntax/way to do name of <a>?

VS2005 telling me <a name="__"> is outdated

         

MorningZ

11:16 pm on May 8, 2006 (gmt 0)

10+ Year Member



What's the "new" XHTML-compliant way to give an anchor a name so i can make it easy for my users to get back to the top of the page easily?

bedlam

11:30 pm on May 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The link works the same way, but instead of an anchor, you can just use an id:

<div id="foo">Lorem ipsum dolor sit amet consectetuer.</div>
<p><a href="#foo">Link back to 'foo'</a></p>

-b