Dong Lam Trien

Dong Lam Trien

  • 782
  • 968
  • 134k

How to load html page into the main page ?

Dec 3 2020 9:21 PM
Suppose I have 2 files: Main.html and Home.html, in Main.html page there is html code with the following menu:
  1. <div class="container">  
  2. <div id="menu">  
  3. <ul class="nav justify-content-center">  
  4. <li class="nav-item"><a class="nav-link" href="Home.html">Home</a></li>  
  5. <li class="nav-item"><a class="nav-link" href="#">ServiceForum</a></li>  
  6. <li class="nav-item"><a class="nav-link" href="#">Question</a></li>  
  7. <li class="nav-item"><a class="nav-link" href="#">Forum</a></li>  
  8. <li class="nav-item"><a class="nav-link" href="#">Contac</a></li>  
  9. </ul>  
  10. </div>  
  11. </div>  
When I click on "Home" from the menu, the Home.html is opened but not in the green area of the Main.html page, so when I click on "Home" from the menu, how do I edit the above code? In addition, when Home loaded by default is also loaded in the green area, how is the above code written? You see the attached photo file: 
 
 

Answers (9)