For small business websites, let say about 10 pages, is there any "common practice" to structure files?
What I normally do is, make a header.php, a footer.php, then all individual pages. in header.php. I put all html head tags in the individual pages like this
<?php //some php if needed?>
<!DOCTYPE HTML>
<html>
<head>
<title>my site</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<meta name="description" content="some descriptions" />
<link rel="shortcut icon" href="images/favicon.png" type="image/png" />
</head>
<body>
<?php include_once "header.php";?>
<!--different page contents here-->
<?php include_once "footer.php";?>
</body>
</html>
In header.php and footer.php, i only put common contents like menu and contact infos. The good thing for this approach is things in head tag like title tag and description meta tag can be easily changed, also different scripts and css can be included as per different pages. The bad thing is whenever anything changes in here I need to change it in every single page.
So I am just wondering what is the proper way to organize them? I have been looking into this problem for quite a while, here are some of the posts This and This and This, thanks