I was wondering if there is any ways to have the a href to be managed externally. That ways I don't have to deal with updating the links in each html files.
I'm not sure if PHP can deal with that or with cpython. If anyone can points me to the right direction. It would be very helpful. Thanks.
<nav>
<ul>
<li>
<a href="index.html">Homepage</a>
<ul>
<li><a href="sitemap.html">Sitemap</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="certification.html">Certifications</a></li>
</ul>
</li>
<li>
<a href="web_development/webdevelopment.html">Web Development</a>
<ul>
<li><a href="web_development/html.html">HTML</a></li>
<li><a href="web_development/css.html">CSS</a></li>
<li><a href="web_development/javascript.html">JavaScript</a></li>
<li><a href="web_development/jquery.html">jQuery</a></li>
<li><a href="web_development/ascii.html">ASCII Table</a></li>
</ul>
</li>
<li>
<a href="programming_languages/programming.html">Programming Languages</a>
<ul>
<li><a href="programming_languages/c.html">C</a></li>
<li><a href="programming_languages/c++.html">C++</a></li>
<li><a href="programming_languages/java.html">Java</a></li>
</ul>
</li>
<li>
<a href="scripting_languages/scripting.html">Scripting Languages</a>
<ul>
<li><a href="scripting_languages/python.html">Python</a></li>
<li><a href="scripting_languages/bash.html">Bash</a></li>
<li><a href="scripting_languages/unixshell.html">Unix Shell Script</a></li>
<li><a href="scripting_languages/php.html">PHP</a></li>
</ul>
</li>
<li>
<a href="operating_system/os.html">Operating System</a>
<ul>
<li><a href="operating_system/windows.html">Windows</a></li>
<li><a href="operating_system/linux.html">Linux</a></li>
<li><a href="operating_system/mac.html">Mac</a></li>
</ul>
</li>
<li>
<a href="about/aboutme.html">About Me</a>
<ul>
<li><a href="about/CV.html">CV</a></li>
<li><a href="about/reflection.html">Reflection</a></li>
<li><a href="about/portfolio.html">Portfolio</a></li>
</ul>
</li>
</ul>
</nav>`
Edit; My website so far without changes and using the code as above
https://i.stack.imgur.com/d3AJH.jpg
With Ema4rl's solution and <?php include 'page.php';?>
https://i.stack.imgur.com/rMcF5.jpg
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-site-verification" content="MCQUXJvcfRxBpOiSL14SrYWBsaiaXT8xB_LunwccElI" />
<title>Homepage</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- CSS here -->
<link rel="stylesheet" type="text/css" href="template.css">
<!-- JavaScript here -->
<script src="externalscript.js" type="text/javascipt"></script>
<!-- PHP here -->
<!-- Python here -->
</head>
<body>
<div class="nested">
<div class="header">
<div class="logo">
<a href="/index.html"><img src="../images/codex.jpg" alt="echo Codex" width="154" height="156" class="topleft"/></a>
</div>
<div class="title">
<br>
<h1>Codex</h1>
<h4><b>Scientia Potentia Est. Knowledge is Power</b></h4>
</div>
<div class="search">
<script>
(function() {
var cx = '002444324895425384483:h-an5qvcpci';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
</div>
<div class="menu">
<?php include 'page.php';?>
</div>
<div class="main">
<div class="sidebar">
<ul>
<li><a href="sitemap.html">Sitemap</a></li>
<li><a href="/contact.html">Contact Us</a></li>
</ul>
</div>
<div class="content">
<h1>Welcome to the Castillo's Vault</h1>
<p>This website is built for general and specific knowledges about the world of computing such as</p>
<ul>
<li>Coding</li>
<li>Rules of coding</li>
<li>Operating System</li>
<li>Hacking world</li>
<li>Portfolio</li>
<li>CV</li>
<li>And much more</li>
</ul>
<p>At the moment, I am designing the webpages by using Notepad++. It will take a long time until the website is at the stage where I feel like it is completed. The website is not even nearly done.</p>
<p>The website will be continuously being updated. There are always new information that are being released about the world of Internet and its medium. The medium are the computers which can be divided into desktop, laptop, tablet, even mobile phone.</p>
<p>This website is created by Hugo-Daniel Castillo for the purpose of education and revising. If there is any queries or comments, please email hugodanielcastillo@vaultofcastillo.comuv.com</p>
<br>
</div>
</div>
<div class="end">
<footer>
<p>Made by Hugo-Daniel Castillo <br>Coventry University Student<br>Ethical Hacking and Networking Security</p>
</footer>
</div>
</div>
</body>
</html>