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


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

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

This first tag is almost the same as any other HTML tag you would use to create a link to another page. However, to create a bookmark, you must start the link with a # (pound symbol,) which represents a name statement, used in the next tag. When the user clicks on Top, the computer would then go to the name tag, if found on the same page of the link

<A NAME="top">

This next tag is where the first tag will go when the link is clicked. These are commonly referred to as bookmarks.

No comments

Post a Comment

Powered by Blogger.