By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

html validation issues

dizyn
P: 9
Hi
here is errors list, i have solved many but these few are not getting solved.
Please help me.
Line 5 column 113: character data is not allowed here.
Line 15 column 6: end tag for "HEAD" which is not finished.
Line 64 column 50: document type does not allow element "FORM" here.
Line 65 column 4: document type does not allow element "TR" here.
Line 72 column 7: end tag for "TABLE" which is not finished.

Code:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="title" content="Boston Red Sox Tickets - Boston Red Sox Schedule - Boston Red Sox Baseball Tickets" />
  6. <meta name="description" content="Boston Red Sox Tickets at Ticketchest.com" />
  7. <meta name="keywords" content="Boston Red Sox Tickets MLB tickets cubs tickets chicago ticket baseball" />
  8. <meta name="robots" content="all" />
  9. <meta name="document-classification" content="sports" />
  10. <meta name="document-type" content="public" />
  11. <meta name="document-distribution" content="global" />
  12. <link href="http://ticketchesttest.com/style.css" rel="stylesheet" type="text/css">
  13. <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
  14. <link rel="icon" type="image/png" href="images/ticketchest.jpg" />
  15. </head>
  16. <body onLoad="MM_preloadImages('STHover1.jpg','CTHover2.jpg','TTHover2.jpg')">
  17.  
  18. <table width="1000" cellpadding="0" cellspacing="0">
  19.     <tr>
  20.     <td><script src="http://ticketchesttest.com/search.js" type="text/javascript"></script>
  21.  
  22. <table width="1000" border="0" cellspacing="0" cellpadding="0">
  23.   <tr>
  24.     <td><table width="1004" border="0" cellspacing="0" cellpadding="0">
  25. <tr>
  26.   <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
  27.     <tr>
  28.  
  29.       <td width="19%" ><a href="http://ticketchesttest.com/index1.php"><img  src="http://ticketchesttest.com/images/logo.gif" alt="Ticketchest.com logo" width="186" height="98" border="0" /></a></td>
  30.       <td valign="top" class="CallUs" style="padding-top:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="5">
  31.         <tr>
  32.           <td height="29" class="top"><a href='http://ticketchesttest.com/index1.php' class='top'>Tickets Home</a>> <a href='http://ticketchesttest.com/sports_tickets.html' class='top'>Sports Tickets</a>> <a class='top' href='/sports_tickets/chicago_cubs'>chicago cubs</a></td>
  33.         </tr>
  34.         <tr>
  35.  
  36.           <td height="20" class="headerTxt">MLB Tickets - MLB Tickets - Sports Tickets</td>
  37.         </tr>
  38.         <tr>
  39.           <td height="20" class="headerTxt">Ticketchest sells chicago cubs</td>
  40.         </tr>
  41.         <tr>
  42.           <td height="15" class="CallUs"><div align="right"><b><font  size="3">Call Us: 1-888-266-TIXX(8499)</font></b></div></td>
  43.  
  44.         </tr>
  45.       </table></td>
  46.       </tr>
  47.       </table></td>
  48.   </tr>
  49. </table></td>
  50. </tr>
  51. <tr>
  52.     <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
  53.       <tr bgcolor="#9EC8E0">
  54.  
  55.         <td width="131" height="30" valign="middle" bgcolor="#9EC8E0" style="background:url(http://ticketchesttest.com/images/1s.gif) top ; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/index1.php">HOME</a></div></td>
  56.         <td width="131" height="30" style="background:url(http://ticketchesttest.com/images/1s.gif) top ; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/sports_tickets.html">SPORTS</a></div></td>
  57.         <td width="131" height="30" style="background:url(http://ticketchesttest.com/images/1s.gif) top repeat; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/theater_tickets.html">THEATER</a></div></td>
  58.         <td width="131" style="background:url(http://ticketchesttest.com/images/1s.gif) top ; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/concerts_tickets.html">CONCERTS</a></div></td>
  59.         <td width="131" style="background:url(http://ticketchesttest.com/images/1s.gif) top ; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/las_vegas_tickets.html">LAS VEGAS</a></div></td>
  60.         <td width="129" style="background:url(http://ticketchesttest.com/images/1s.gif) top ; height:30; width:129; margin-right:2px;"><div align="center"><a class="heading" href="http://ticketchesttest.com/nascar_tickets.html">NASCAR</a></div></td>
  61.  
  62.         <td width="216">
  63. <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#9EC8E0">
  64. <form method="post" action="search.php" id="form1">
  65.     <tr>
  66.         <td width="23" height="30"><div align="left"><img src="http://ticketchesttest.com/images/barbar1.gif" alt="" width="22" height="30"></div></td>
  67.         <td height="30" bgcolor="#A5C8D5" width="1"></td>
  68.         <td width="129" align="right" bgcolor="#9EC8E0" style="padding-top:4px;"><input style="width:120px;" name="text2" type="text"  onclick="this.value=''" onKeyUp="makeRequest('a.php?txt='+this.value,'suggestions')" value="Search by event, venue" /></td>
  69.         <td width="67" align="left" bgcolor="#9EC8E0" style="padding-top:4px;"><input class="tmp" type="submit" name="Submit" value="Search" />        </td>
  70.     </tr>
  71. </form>
  72. </table></td></tr></table></td></tr></table></td></tr></table></body></html>
Apr 27 '07 #1
Share this Question
Share on Google+
4 Replies


dizyn
P: 9
I have solved few others as well now following 3 left:

Line 64 column 39: document type does not allow element "FORM" here.
Line 65 column 4: document type does not allow element "TR" here.Line 65 column 4: document type does not allow element "TR" here.

these are not getting solved if any one help me out i will be thank full.

thank you once more.

http://www.dizyn.com
Apr 27 '07 #2

KevinADC
Expert 2.5K+
P: 4,059
The form tag can't legally be in between the <table> tag and the <tr> tag even though it will still work properly.


Expand|Select|Wrap|Line Numbers
  1. <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#9EC8E0">
  2. <form method="post" action="search.php" id="form1">
  3.     <tr>
move the form tag to a legal position on the page. Maybe just before the table tag will be OK. Same with the closing form tag, move it to just outside the closing table tag. If you don't want the form to cause a break in your display use display:inline to change it's block level behavior to inline level behavior:

Expand|Select|Wrap|Line Numbers
  1. <form style="display:inline;" method="post" action="search.php" id="form1">
  2.  
Apr 27 '07 #3

dizyn
P: 9
Thank you,
what about

Line 5 column 113: character data is not allowed here.
Line 15 column 6: end tag for "HEAD" which is not finished.

what should i do to get this solve?
Apr 27 '07 #4

drhowarddrfine
Expert 5K+
P: 7,435
That is caused by the missing <title> tag.
Your doctype is incomplete putting you into quirks mode. See the sticky at the top of this board. Use html4.01 strict. Then revalidate.
Apr 27 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.