html 2 html on one page code example

Example 1: how to create multiple pages in html

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

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

Example 2: html add page to document

<nav>
  <ul>
    <li><a href="myPage.html">Main Page</a></li> <!-- Add a link to a website. -->
    <li><a href="myOtherPage.html">Other Page</a></li> <!-- Add a link to another website. -->
  </ul>
</nav>

Tags:

Html Example