How to create links to sections on the same page in HTML?

Question

How do you create links to sections on the same page in HTML?

Answer

This question was answered on April 7, 2003. Much of the information contained herein may have changed since posting.

To create links to a link within the page currently in two HTML tags need to be used.

<A HREF="#top">Top</a>

<A NAME="top">

The first tag <A HREF="#top">Top</a> is different in that it has a # which represents a name statement When the user clicks on Top the computer would then go to the name tag if found.

The second tag <A NAME="top"> is where the first tag will reference when clicked.

Need Help with this Issue?

We help people with technology! It's what we do.
Schedule an Appointment with a location for help!

Author

Posted by olivia of Katharine Gibbs School - New York on April 7, 2003