Page with content --> includes everthing else all at one time, the whole layout, nav, header so on and so fourth. BTW: I use css for layout so its not like the order of stuff will affect how it is positioned.
Include header, footer, and anything else that would stay constant on all of your pages. Let the content be because it will change on every page. Since you are using includes, take something like PHP and you can use the OOP aspect of it to define a class which defines your variables, and functions for the site and then you can call what you need. Check out the link below for a preview version of PHP Anthology I & II and you'll see this in action.
<title>Title is specific to each page, and useful for search engines.</title>
include css files, common meta tags etc.
add any specific meta tags directly onto the page.
</head>
<body>
include anything above content within html - e.g. opening div tags,
Content
Include </div>s and menu
</body>
</html>
In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
"And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.
<?PHP
include $_SERVER['DOCUMENT_ROOT']."/header.php";
?>
<p>content...</p>
<?PHP
include $_SERVER['DOCUMENT_ROOT']."/footer.php";
?>
Basically, choice number one. You might want to check out this as well, as it's very beneficial to change certain content in the header (such as the title or meta information). Depending on how you want to structure your header, you can either use the method I use (described in the entry) or use the method in the first user comment.
Bookmarks