I am creating my website for a portfolio and I want to include the title as php include on my page. The reason is that there will be quite a few pages on the site, and I want to subsequently make changes to some things, for example, when collecting css files.
For instance:
<head> <?php include('head.php'); ?> </head>
unlike all this, below is shown on each page:
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/1140.css"> <link rel="stylesheet" href="css/ie.css"> <script src="js/vendor/modernizr-2.6.1.min.js"></script> </head>
I just did not know if this was really good practice, since this is my portfolio site, I need the code to be correct from the very beginning, as they will probably also learn its standard.
What are your opinions and advice to people? Thanks.
source share