Sunday, June 22, 2014

HTML - Adding Links - Interior links

When you create a long web page, it can sometimes be helpful to include interior links to content within that page. You might think of a long web page as a ladder, where each section on the page is another rung on the ladder. To link between the rungs, first add section labels like this:
<a name=”section1”>Section 1</a>
Then, link to those sections by placing a hash mark (#) in front of the section name in the href value:
<a href=”#section1”>Jump to Section 1</a>

No comments: