Quantcast
Channel: HTML – Code Chewing
Viewing all articles
Browse latest Browse all 21

How to jump to sections of your web page with anchor links

$
0
0

Use anchor tags to jump to locations on a webpage. Maybe you have a lot of content on one page and it is split into sections, and you want a jump-to navigation at the top of the document to help out your user.

You first need the link within your menu, something like this:

<a href="#about">About</a>

And then somewhere down the page, you’ll have the about section, and here’s some example HTML:

<h5 id="about">About Section</h5>
<p>Text for the about section.</p>

When the About link is clicked in the menu, it will jump to the <h5> About section.


Viewing all articles
Browse latest Browse all 21

Trending Articles