niche Posted July 13, 2010 Share Posted July 13, 2010 I received this error message with validation: end tag for "head" which is not finished. The script has an end tag for the head tag. What's the real mistake?Here's my script: <!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><style type="text/css">body{font-family:arial;}a{color:black;text-decoration:none;font:bold;font-size:150%; width:200px;}a.one:visited {color:blue;}a.one:hover {color:red;}table.menu{width:200;font-size:75%;visibility:hidden;}</style><script type="text/javascript">function showmenu(elmnt){document.getElementById(elmnt).style.visibility="visible";}function hidemenu(elmnt){document.getElementById(elmnt).style.visibility="hidden";}</script></head> Link to comment Share on other sites More sharing options...
boen_robot Posted July 13, 2010 Share Posted July 13, 2010 Could you show your full code? I mean with the body and everything? Link to comment Share on other sites More sharing options...
niche Posted July 13, 2010 Author Share Posted July 13, 2010 Here it is: <!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><style type="text/css">body{font-family:arial;}a{color:black;text-decoration:none;font:bold;font-size:150%; width:200px;}a.one:visited {color:blue;}a.one:hover {color:red;}table.menu{width:200;font-size:75%;visibility:hidden;}</style><script type="text/javascript">function showmenu(elmnt){document.getElementById(elmnt).style.visibility="visible";}function hidemenu(elmnt){document.getElementById(elmnt).style.visibility="hidden";}</script></head><body><img style="position:absolute;left:40px;top:20px;" src="savebop6.png" /><img style="position:absolute;left:440px;top:0px;" src="whitebox.png" /> <h2 style="position:absolute;left:460px;top:15px;width:650px;text-align:center;text-decoration:underline;">Click on the checkboxes to select the offers you want.</h2><table > <tr> <td> <a class="one" target="_blank" style="outline:none;position:absolute;left:120px;top:180px;" href="viewall.php">View All Bops</a> </td> <td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" > <a class="one" target="_blank" style="outline:none;position:absolute;left:120px;top:220px;" href="jf3.php">By Location</a> <table style="position:absolute;left:285px;top:221px;" class="menu" id="location" > <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">Southpointe</a></td></tr> <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">Williamsburg</a></td></tr> <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">40th & Old Cheney</a></td></tr> <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">56th & Old Cheney</a></td></tr> <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">14th & Pine Lake</a></td></tr> <tr><td width="65px" style="position:absolute;left:30px;top:210px;" onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu" > <div >Where do you want to buy it?</div></td></tr> </table> </td> <td onmouseover="showmenu('business')" onmouseout="hidemenu('business')" > <a class="one" target="_blank" style="outline:none;position:absolute;left:120px;top:260px;" href="jf3.php">By Business</a> <table style="position:absolute;left:285px;top:261px;" class="menu" id="business" > <tr><td class="menu"><a href="jf3.php">Lincoln Area Model Supply</a></td></tr> <tr><td class="menu"><a href="jf3.php">Greenfields</a></td></tr> <tr><td class="menu"><a href="jf3.php">The Cleaning Connection</a></td></tr> </table> </td> <td onmouseover="showmenu('category')" onmouseout="hidemenu('category')" > <a class="one" target="_blank" style="outline:none;position:absolute;left:120px;top:300px;" href="jf3.php">By Category</a> <table style="position:absolute;left:285px;top:301px;" class="menu" id="category" > <tr><td class="menu"><a href="jf3.php">Hobbies</a></td></tr> <tr><td class="menu"><a href="jf3.php">Restaurants</a></td></tr> <tr><td class="menu"><a href="jf3.php">Carpet Cleaning</a></td></tr> </table> </td> </tr> </table></body></html> Link to comment Share on other sites More sharing options...
thescientist Posted July 13, 2010 Share Posted July 13, 2010 your page needs a <title> tag in it too. (inside the head section), which is why the message says you're <head> is not finished. (as opposed to an error about not having a matching closing tag) Link to comment Share on other sites More sharing options...
niche Posted July 13, 2010 Author Share Posted July 13, 2010 Final two issues. 1. The validator has a problem with the ampersand in: character "&" is the first character of a delimiter but occurred as data <tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">40th & Old Cheney</a></td></tr><tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">56th & Old Cheney</a></td></tr><tr><td onmouseover="showmenu('location')" onmouseout="hidemenu('location')" class="menu"><a class="one" target="_blank" href="jf3.php">14th & Pine Lake</a></td></tr> 2. I don't even know what this means except the it has to do with the same above code: xmlParseEntityRef: no name Thanks for your help Link to comment Share on other sites More sharing options...
thescientist Posted July 13, 2010 Share Posted July 13, 2010 use & Link to comment Share on other sites More sharing options...
dink Posted July 13, 2010 Share Posted July 13, 2010 Try using & in place of the &Hope this helps.dink Link to comment Share on other sites More sharing options...
niche Posted July 13, 2010 Author Share Posted July 13, 2010 What do I do about: No Character Encoding Found!and: No Character encoding declared at document level?I've read their guidance and don't know what they want me to do. Link to comment Share on other sites More sharing options...
niche Posted July 13, 2010 Author Share Posted July 13, 2010 FYI, added this: <META http-equiv="Content-Type" content="text/html; charset=UTF-8">to counter: No Character Encoding Found! Falling back to UTF-8and generated 5 new errors:Re : the new meta tagthere is no attribute "http-equiv" there is no attribute "content"element "META" undefinedend tag for "META" omitted, but OMITTAG NO was specifiedend tag for "head" which is not finishedon this URL: http://www.lincolnsrealdeals.com/nav5b.html Link to comment Share on other sites More sharing options...
boen_robot Posted July 13, 2010 Share Posted July 13, 2010 You're using XHTML. In XHTML, all tags are lowercased, and empty elements end with "/>" instead of ">", therefore: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Link to comment Share on other sites More sharing options...
niche Posted July 13, 2010 Author Share Posted July 13, 2010 Thanks boen_robot and thescientist for helping me get through my first validation. Niche Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.