I am trying to clean up and streamline my php code. I've been reading books and they all seem to have the HMTL doctype and head info as part of each php page. Up until the now, I've been inserting the HTML preamble as an include file and it appears to work fine. What do you think...? Does it matter, or is that bad practice?
This is html.php
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>'. $title.'</title>
<link rel="stylesheet" type="text/css" href="http://aysoarea-1f.org/AYSO_tourn_notifier/style_sheet/stylesheet.css" />
</head>
<body>
This is typical module's include
$title="Notify | Admin Home"; // this appears in document and on tab
require_once 'common/html.php';