Href target div tag

Dear Friends,

I have used two divisions. In one division I have menu list. whenever I select the Menu Item from the first division, automatically the html file which associated with that Menu Item has to display in the second division. The code is here:
<html>
<head>
<title>
</title>
</head>
<div id=“navigation”>
<a href=“Home.html”>home</a>
<a href=“services.html”>Services</a>
<a href=“contact.html”>Contact</a>
</div>
<div id=“conten”>
Initially some text
</div>

I tried with iframe, but it is not perfect and also it has few drawbacks. Please help me with divisions only.
:slight_smile:

To target any id (eg id=“any”) in the same page use the same id in the href after a # (eg href=“#any”)

If in a different page then the address of the page goes in front of the #.

Hi K. CHANDRA SEKHA. Welcome to the forums. :slight_smile:

A common way to do this is with Ajax. Here is a recent thread that shows how to do it with and without a JavaScript library: