how to create multiple pages in html code example

Example 1: multiple pages in one html file

function show(shown, hidden) {
  return false;

  <div id="Page1">
    Content of page 1
    <a href="#" onclick="return show('Page2','Page1');">Show page 2</a>

  <div id="Page2" style="display:none">
    Content of page 2
    <a href="#" onclick="return show('Page1','Page2');">Show page 1</a>


Example 2: how to make multiple pages html

<a href="page2.html">page2.html</a>

Example 3: html multi page website

    <li><a href="#">Navigation</a></li>
    <li><a href="#">Menu</a></li>
    <li><a href="#">Links</a></li>

Example 4: how to create multiple pages in html

<!-- Answer to: "how to create multiple pages in html" -->

<!DOCTYPE html>
	<link href="./style.css">
    <script type="text/javascript" src="./script.js"></script>
	<a href="./new_page.html">Link to other pages</a> 


Html Example