Turn on thread page Beta

Unbalanced head tag line 3 column 8 watch

Announcements
    • Thread Starter
    Offline

    0
    ReputationRep:
    right so have been developing this page today for my college course trying to save using Dreamweaver getting this error

    “There is an error at line 3 column 8 unbalanced head tag “
    quite new to website design and don’t really understand this. Here my html code

    Any instruction would be much appreciated




    <!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=iso-8859-1" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <LINK href="../htm/cssmenu.css" type="text/css" rel="stylesheet">
    <style type="text/css">
    <!--
    .style3 {color: #CC99FF}
    -->
    </style>

    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    <table width="1097" height="115" border="0">
    <tr>
    <th width="127" height="74" scope="col"><img src="../images/lincoln.gif" width="95" height="86" /></th>
    <th width="952" align="right" valign="top" bordercolor="#000000" bgcolor="#0066FF" scope="col"
    ><font color="#CCCCCC"><a href ="../htm/cssmenu.html" >Home </a> <a href="../htm/Research Biograph.html">Reseach
    Biographies</a> </font>
    <li><font color="#CCCCCC"><a href="../htm/Project Videos.html">Project Video</a></font></li>
    <li><font color="#CCCCCC"><a href="../htm/Media Links.html">Media Links </a></font></li>
    <li><font color="#CCCCCC"><a href="../htm/Publications.html">Publication</a></font></li>
    <h1 class="style3"> Welcome To The Seabird Monitoring Research Project Website.</h1>
    <tr>
    <th height="1211" valign="bottom" bgcolor="#0066FF" ><a href="http://twitter.com/BIGD34"><img src="http://www.twittericon.com/image/twitter131.gif" title="By: TwitterIcon.com" border="0"/></a><br />
    </a></th>

    <td height="1211" valign="top"><!-- TemplateBeginEditable name="EditRegion1" --><!-- TemplateEndEditable --></td>
    </tr>
    </table>
    Offline

    17
    ReputationRep:
    I'm not an expert on stuff like this, but I'd imagine you'd need an opening <head> clause before you can have a closing </head> clause.
    Offline

    2
    ReputationRep:
    (Original post by bob400)
    right so have been developing this page today for my college course trying to save using Dreamweaver getting this error

    “There is an error at line 3 column 8 unbalanced head tag “
    quite new to website design and don’t really understand this. Here my html code

    Any instruction would be much appreciated




    <!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=iso-8859-1" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <LINK href="../htm/cssmenu.css" type="text/css" rel="stylesheet">
    <style type="text/css">
    <!--
    .style3 {color: #CC99FF}
    -->
    </style>

    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
    <table width="1097" height="115" border="0">
    <tr>
    <th width="127" height="74" scope="col"><img src="../images/lincoln.gif" width="95" height="86" /></th>
    <th width="952" align="right" valign="top" bordercolor="#000000" bgcolor="#0066FF" scope="col"
    ><font color="#CCCCCC"><a href ="../htm/cssmenu.html" >Home </a> <a href="../htm/Research Biograph.html">Reseach
    Biographies</a> </font>
    <li><font color="#CCCCCC"><a href="../htm/Project Videos.html">Project Video</a></font></li>
    <li><font color="#CCCCCC"><a href="../htm/Media Links.html">Media Links </a></font></li>
    <li><font color="#CCCCCC"><a href="../htm/Publications.html">Publication</a></font></li>
    <h1 class="style3"> Welcome To The Seabird Monitoring Research Project Website.</h1>
    <tr>
    <th height="1211" valign="bottom" bgcolor="#0066FF" ><a href="http://twitter.com/BIGD34"><img src="http://www.twittericon.com/image/twitter131.gif" title="By: TwitterIcon.com" border="0"/></a><br />
    </a></th>

    <td height="1211" valign="top"><!-- TemplateBeginEditable name="EditRegion1" --><!-- TemplateEndEditable --></td>
    </tr>
    </table>
    There's your problem. Theres no opening head tag. And your meta, title and link tags need to go inside the head tag.
    • TSR Group Staff
    Offline

    19
    ReputationRep:
    TSR Group Staff
    You're also missing the <body> tag, which needs to go around the main table.

    Also, did you learn to code HTML from the '90s or something? Half the tags/attributes you've used got depreciated years ago.
    Offline

    0
    ReputationRep:
    I cleaned up your code a little bit for you. http://pastebin.com/m56986367
    You need ALT tags for all images. Don't use tables for anything but DATA. You should use DIV elements for layout items and use CSS to position them (much easier and more accessible). Always balance your tags, get in a habbit of doing them straight away (i.e. type <a href=""> then do </a> so you dont forget, then edit it). Plenty of HTML resources out there, go and learn it. P.S. its late, im not going to say my code is spot on, it can allways be improved. But see how I have styled elements, inline styles and style sheets, thats a nono. Your docuemnt should be able to render without any CSS. Then apply the styles after. Try this too: http://demos.usejquery.com/brosho-plugin/

    P.S. head over to the W3C validator service with your code, you've got a few errors.
    Hope this helps! Best to avoid the mistakes early on, trust me
    • Thread Starter
    Offline

    0
    ReputationRep:
    Many Thanks for all your advice
 
 
 
Poll
Do you think parents should charge rent?
Useful resources

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.