1 Reply Latest reply on Apr 27, 2010 7:22 PM by CVK-USA

    Unbalanced body tag

    d_blain08

      Hi,

       

      When I try to save my template I get an error at line 64. Strugglin with this, any help welcomed. Heres the code:

       

      <meta name="" content="Dyffryn Taf Physical Education Department" />
      <meta name="keywords" content="PE, Physical Education, Dyffryn Taf, PE Website" />
      <meta name="description" content="Dyffryn Taf Physical Education Department" />
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <meta name="Dyffryn Taf PE Website" content="Physical Education Website for Dyffryn Taf School" />
      <meta name="Keywords" content="Physical Education,PE Website,Dyffryn Taf,PE,PE Learning Resources,GCSE PE,A Level PE,OCR A Level PE,WJEC GCSE PE,School PE Website
      " />
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <!-- TemplateBeginEditable name="doctitle" -->
      <title>Dyffryn Taf PE Website</title>
      <!-- TemplateEndEditable -->
      <style type="text/css">
      <!--
      body {
      background-image: url(../Images/bg);
      background-repeat: repeat-x;
      }
      -->
      </style>
      <link href="../DT_css.css" rel="stylesheet" type="text/css" />
      <script type="text/JavaScript">
      <!--
      function MM_swapImgRestore() { //v3.0
        var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
      }

      function MM_preloadImages() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
          var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
          if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
      }

      function MM_findObj(n, d) { //v4.01
        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
          d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
        if(!x && d.getElementById) x=d.getElementById(n); return x;
      }

      //-->
      </script>
      <style type="text/css">
      <!--
      .style8 {
      font-style: italic;
      font-family: Georgia, "Times New Roman", Times, serif;
      font-size: larger;
      }
      .style13 {
      font-family: Georgia, "Times New Roman", Times, serif;
      font-size: 20px;
      font-weight: bold;
      font-style: italic;
      color: #FFFFFF;
      }
      .style15 {color: #FF0000}
      -->
      </style>
      <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
      </head>
      <body onload="MM_preloadImages('../Imagespoulter.jpg')">
      <div align="center">
        <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="90" colspan="3"><img src="../Images/Banner_new.png" alt="Dyffryn Taf PE Department" width="750" height="150" /></td>
          </tr>
         
          <tr>
            <td height="30" colspan="3"><img src="../Images/Header.jpg" width="750" height="30" /></td>
          </tr>
         
         
          <tr>
            <td width="146" align="left" valign="top" bgcolor="#FFFFFF"><p><a href="../index.html" class="navigation">Home</a> <a href="../News Archive.html" class="navigation">News Archive </a> <a href="../GCSE.html" class="navigation">GCSE </a> <a href="../ALevel/ALevel_home.htm" class="navigation">A Level</a> <a href="../Video Highlights/Dyffryn_Taf_Video_Highlights/index.html" class="navigation">Video Highlights</a> <a href="../Facilities.html" class="navigation">Facilities</a> <a href="../PhotoGallery.html" class="navigation">Photo Gallery</a> <a href="../Staff.html" class="navigation">Staff </a><a href="../Sports Awards.html" class="navigation">Sports Awards</a><a href="../Learning_resources.html" class="navigation">Resources</a></p>
              <p> </p>      </td>
            <td width="604" height="190" colspan="2" align="left" valign="top" bgcolor="#FFFFFF" class="h"><!-- TemplateBeginEditable name="body" --> <!-- TemplateEndEditable --></td>
          </tr>
         
         
          <tr>
            <td height="30" colspan="3"><img src="../Images/Footer.jpg" width="750" height="30" /></td>
          </tr>
        </table>
      </div>
      <script type="text/javascript"

      </body>
      </html>

        • 1. Re: Unbalanced body tag
          CVK-USA

          Something i noticed in the last few lines of your code:

           

           

          </div>
          <script type="text/javascript"

          </body>
          </html>

           


          This script tag is incomplete..  see what happens if you remove it or complete it, at the very least it needs a closing bracket.