3 Replies Latest reply: Apr 16, 2012 10:07 PM by Ben Pleysier RSS

    Unbalanced Body Tag

    cydoval

      Hello, I am new to web design,  I'm using CS4, and a my template rugby.dwt is producing a unbalanced body tag error at line 13.

       

      I am somewhat of a noob at the code, could someone enlighten me on this situation. Ill post the code.

       

      <!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">

      </head>

      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

      <!-- TemplateBeginEditable name="doctitle" -->

      <title>UCD Rugby</title>

      <!-- TemplateEndEditable -->

      <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>

      <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />

      <link href="../CSS/rugby.css" rel="stylesheet" type="text/css"/>

      <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

      </body>

      <!-- TemplateBeginEditable name="Banner" -->

      <div class ="header">

      <div class="rotate"><img src="../images/cal.jpg" alt="test" name="rotator" width="700" height="250" id="rotator" /></div>

      </div>

        <map name="Map" id="Map">

          <area shape="rect" coords="17,164,723,225" href="../index.html" />

        </map>

      </div>

      <!-- TemplateEndEditable -->

      <ul id="MenuBar1" class="MenuBarHorizontal">

        <li class="MenuBarHorizontal"><strong><a href="../index.html" class="MenuBarHorizontal">Home</a></strong> </li>

        <li><a href="../Schedule.html"><strong>Schedule</strong></a>  </li>

        <li><a href="../Roster.html"><strong>Roster</strong></a>  </li>

      <li><a href="../New Recruits.html"><strong>New Recruits</strong></a></li>

      <li><a href="../history.html"><strong>History &amp; Game</strong></a>        </li>

        <li><a href="../Media.html"><strong>Media</strong></a>  </li>

        <li><a href="../Contact.html"><strong>Contact Us</strong></a>  </li>

      </ul>

      <p><br />

      <hr />

       

         

      <div class ="left_column"><!-- TemplateBeginEditable name="LeftText" --><!-- TemplateEndEditable --></div>

      <div class ="right_column"><!-- TemplateBeginEditable name="MainText" -->

        <hr />

        <p> </p>

      <!-- TemplateEndEditable --></div>

       

       

      <div class = "Footer">

        <hr />

        <p>•UC Davis Mens Rugby Club• Davis ,California 95616-</p>

        <hr />

      </div>

       

       

      <script type="text/javascript">

      <!--

      var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});

      //-->

      </body>

      </html>

        • 1. Re: Unbalanced Body Tag
          Rik Ramsay Community Member

          Remove the "/" from the first instance and it should fix that error:

           

          <link href="../CSS/rugby.css" rel="stylesheet" type="text/css"/>

          <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

          <body>

          <!-- TemplateBeginEditable name="Banner" -->

           


          • 2. Re: Unbalanced Body Tag
            cydoval Community Member

            okay i talked to bud, made some changes now it is giving me unbalanced head tag at line 3, column 8

             

            <!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">

            <head>

            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

            <!-- TemplateBeginEditable name="doctitle" -->

            <title>UCD Rugby</title>

            <!-- TemplateEndEditable -->

            <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>

            <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />

            <link href="../CSS/rugby.css" rel="stylesheet" type="text/css" />

            <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

            </head>

            <body>

            <!-- TemplateBeginEditable name="Banner" -->

            <div class ="header">

            <div class="rotate"></div>

              <map name="Map" id="Map">

                <area shape="rect" coords="17,164,723,225" href="../index.html" />

              </map>

            <!-- TemplateEndEditable -->

            <ul id="MenuBar1" class="MenuBarHorizontal">

              <li class="MenuBarHorizontal"><strong><a href="../index.html" class="MenuBarHorizontal">Home</a></strong> </li>

              <li><a href="../Schedule.html"><strong>Schedule</strong></a>  </li>

              <li><a href="../Roster.html"><strong>Roster</strong></a>  </li>

            <li><a href="../New Recruits.html"><strong>New Recruits</strong></a></li>

            <li><a href="../history.html"><strong>History &amp; Game</strong></a>        </li>

              <li><a href="../Media.html"><strong>Media</strong></a>  </li>

              <li><a href="../Contact.html"><strong>Contact Us</strong></a>  </li>

            </ul>

            <p><br />

            <hr />

             

               

            <div class ="left_column"><!-- TemplateBeginEditable name="LeftText" --><!-- TemplateEndEditable --></div>

            <div class ="right_column"><!-- TemplateBeginEditable name="MainText" -->

              <hr />

              <p> </p>

            <!-- TemplateEndEditable --></div>

             

             

            <div class = "Footer">

              <hr />

              <p>•UC Davis Mens Rugby Club• Davis ,California 95616-</p>

              <hr />

            </div>

             

             

            <script type="text/javascript">

            <!--

            var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});

            //-->

            </body>

            </html>

             

             

            any insight? cheers for the reply

            • 3. Re: Unbalanced Body Tag
              Ben Pleysier MVP

              Remove the red highlighted and insert the green highlited

              </head>

              <head>

              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

              <!-- TemplateBeginEditable name="doctitle" -->

              <title>UCD Rugby</title>

              <!-- TemplateEndEditable -->

              <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>

              <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />

              <link href="../CSS/rugby.css" rel="stylesheet" type="text/css"/>

              <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

              </head>

              </body>

              <body>

               

              Gramps