Assignment 8: HTML Website
Navigating to Sections on the Same Page
When pages are long, or visitors are expected to interested in specific topics, you can section the page using
<div>s with unique
ids. A page can then include its own navigation with links to those unique sections.
Jumping to areas on the same page is a two-step process of adding ids to elements and creating links to those ids.
Note It is considered good practice to include “back to top” options for the user, to avoid excessive scrolling and confusion. This can be done by using
# as the source’s placeholder, or creating an
id at the page’s beginning.