title: HTML Strict validation is not recognizing my imported documents?
body: <p>I am just validating my webpage and working through the errors. the scenario I have is that I have the structure where I import a header file, through <code>&lt;?php include ('header.php') ?&gt;</code> and also with my navigation file. Now in terms of seeing it in the browser this works, but when I validate with XHMTL1.1 strict it comes up with the error.</p>
  
  <p>So I have an index.php which imports both the header.php and navigation.php - now as I am writing this I am realizing that the navigation.php does not get the css file imported into it, but does the validator not just read the html? so there it should pick it up and see that it gets the information?</p>
  
  <p>Please let me know if I am on the right track with this, otherwise it seems that you sacrifice validation for a structured website??</p>
  
  <p>Cheers Jeff PS Happy New Year:-)</p>
  
  <p>EDIT CODE:</p>
  
  <blockquote>
    <p>URI: <a href="http://thepalmsmarket.co.nz/index.php" rel="nofollow">http://thepalmsmarket.co.nz/index.php</a>    a
    276   9     there is no attribute "id"  a
    276   24    there is no attribute "class"   a
    276   38    element "nav" undefined</p>
  </blockquote>
  
  <p>I these are the last errors and they are related to this code:</p>
  
  <p>index.php:</p>
  
  <pre><code>&lt;?php include_once ("01includes/header.php"); ?&gt;
  
  &lt;/head&gt;&lt;!--hmtl tag closes in the footer--&gt; 
  
  &lt;body class="no-js"&gt;&lt;!--The script here is to disable the class put into the body tag if javascript is enabled.--&gt; 
  &lt;?php include_once ("01includes/navigation.php"); ?&gt;
  </code></pre>
  
  <p>navigation.php:</p>
  
  <pre><code>&lt;nav id="topNav" class="centeredmenu"&gt;  
  &lt;ul&gt;
      &lt;?php
          $subject_set = mysql_query("SELECT * FROM webMenu", $dbconnect);
          if (!$subject_set) {
          die("Database query failed: " . mysql_error());
          }
          while ($subject = mysql_fetch_array($subject_set)) {
          echo "&lt;li class=\"{$subject["class"]}\"&gt;&lt;a href=\"   {$subject["link"]}\" onclick=\"{$subject["javascript"]}\" title=\"{$subject["title"]}\"&gt;{$subject["menuItem"]}&lt;/a&gt;&lt;/li&gt;"; }
      ?&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p></p>
  
  <p>The css is declared in desktop.css which is imported into header.php, but not into navigation.php as that would be a double up - hope that makes sense:-)</p>