Hi.. i'm new to web developement and i have a problem .. and a (bad) solution : i want to navigate in my page. The pages have the same layout. The only difference is an div container. Sample code : home.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en >
<head>
<title>Sample</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<div id="container" >
<div id="outer" >
<div id="inner">
<div id="left" >
<div id="menu3">
<ul>
<li><a href="home.html" title="Link 1">Home</a></li>
<li><a href="about.html" title="Link 2">About</a></li>
</ul>
</div>
</div>
<div id="content" ><h2>Startseite</h2>
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
</div><!-- end content -->
</div><!-- end inner -->
</div><!-- end outer -->
</div><!-- end container -->
</body>
</html>
about.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en >
<head>
<title>Sample</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<div id="container" >
<div id="outer" >
<div id="inner">
<div id="left" >
<div id="menu3">
<ul>
<li><a href="home.html" title="Link 1">Home</a></li>
<li><a href="about.html" title="Link 2">About</a></li>
</ul>
</div>
</div>
<div id="content" ><h2>Startseite</h2>
<p>
**OTHER CONTENT**
</p>
</div><!-- end content -->
</div><!-- end inner -->
</div><!-- end outer -->
</div><!-- end container -->
</body>
</html>
This works fine. But there is a lot of code duplication which can get me into trouble when i have 15 pages :D So.. what is the usual way to do it ? Maybe some Ajax voodo ?!
Please Help