I am just getting started out in the wonderful world of hand-coded web development and have already run into a semi-wall. I am slapping a Navigation Bar at the top of the website like so many others, but I am putting that HTML code into every single HTML file. The problem sets in when, say, I want to add the another link at a later point in time. For example, maybe I was dumb and forgot to put a "Services" page on my startup business' Nav Bar. I now have to go back and change the code on all of the HTML pages to reflect that change.
Here is an example of one of my website template page:
- Code: Select all
<html>
<head>
<title>MadCap-PDC Entertainment</title>
<link type="text/css" rel="stylesheet" href="madcap.css" />
</head>
<body>
<div id="Navigation">
<p>
<a href="index.html">Home</a> -
<a href="shrump.htm">Artists</a> -
<a href="bios.htm">Representation</a> -
<a href="contact.htm">Contact</a>
</p>
</div> <!-- Close #navigation -->
<div id="content">
<p>Cool stuff goes here!</p>
</div> <!-- Close #content -->
</body>
</html>
Yeah, the site will look like utter crap with this code but I am trying to get it functional first, and add style second
Now I know this will probably become a moot point when I get back into Flash (Java is also up on the table-o-books-to-pour-over) but there just has to be a simpler way of updating my Nav Bar at present time. Much like you can link out to a CSS file and streamline style changes to a website, could I also do this with HTML code as well?
I apologize if this has already been addressed in another post, but I have no idea what this technique is called and thus clueless on how to search for it


