Name anchor link or some specific section link from an other html file.

Q. I have one index.html page in my  website  and I want to link an other html with some specific section, i.e services.html or name anchor tag call from other html page.
A.  you can use anchor name or div id=”services” use  an other html file. see example below:
For one page website or project i.e “index.html”:

 <a name=”services”></a>

or

<div id=”services”>

For an other  external html page i.e “services.thml” :
 <nav> 

<ul> 

<li><a href="index.html">HOME</a></li> 

<li><a href="index.html#services">ABOUT</a></li> 

<li><a href="#section2">APARTMENTS</a></li> 

<li><a href="index.html#section3">LANDLORDS</a></li> 

<li><a href="contact-us.html">CONTACT</a></li> 

</ul> 

</nav>