Hope someone can help with this.

I've basically been checking my validation for a site, and have a page with a single error :


The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

I think I've figured out its due to the PHP code that starts :

if ($row_rsModels)     {
  echo "<SC" . "RIPT>\n";
  echo "var WAJA = new Array();\n";

  $oldmainid = 0;
  $newmainid = $row_rsModels["Make"];
  if ($oldmainid == $newmainid)    {
    $oldmainid = "";
ie the echo "<SC" . "RIPT>\n"; line

How would I incorporate the type="text/css" part in there for it to validate?

I've tried a few things, but presumably just have the syntax wrong.

If anyone could point me in the right direction, that would be much appreciated.