How to make a navigation link from a specific page, to go to another page at a specific location.

Anna Ikoki
May 1, 2022

This is Html

Case: Navigate from Contact page‘s Servicelink on navigation, to the Home page’s Service section.

In contact.html file, add:

<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html#services">Services</a></li>
<li class="current"><a href="contact.html">Contact</a></li>
</ul>
</nav>

index.html should have:

<nav>
<ul>
<li class="current"><a href="index.html">Home</a></li>
<li><a href="#services">Services</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>

With a tag content with anid=’services’

That’s all folks!

--

--

No responses yet