SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quick bit of simple code help pls

    I am getting one error on a page I am trying to validate, I am sure its simple to work out but me being thick at html I cant seem to

    The error is

    'Line 1464, column 28: end tag for "tr" which is not finished .'

    The code in question relvolves around

    Code:
       <tbody>
    
                                <tr> 
                                  <td align="center"> 
                                    <table style="width: 594px; height: 35px;" border="0" cellpadding="4" cellspacing="0">
    
                              <tbody>
    						  
    
                                <tr>
     
                              
    
                                
                            </tr>
      
                              </tbody>
                            
                            </table>
    
                       </td>
     </tr>
    
                      
                        </tbody>
                    
                      </table>
    I tried taking out the tr the validate site said but that made things worse

    Thnx

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Based on what you've got there, it looks like it should be:

    HTML Code:
    <table>
    	<tbody>
    		<tr> 
    			<td align="center"> 
    				<table style="width: 594px; height: 35px;" border="0" cellpadding="4" cellspacing="0">
    					<tbody>
    						<tr>
    							<td></td>
    						</tr>
    					</tbody>
    				</table>
    			</td>
    		</tr>
    	</tbody>
    </table>

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. A TR must contain at least one cell:
    Code:
    <!ELEMENT TR - O (TH|TD)+>
    Birnam wood is come to Dunsinane

  4. #4
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need another quick bit of help, same problem TR problem, sure it's simple but everything I try just makes more errors, even if I take out the TR it says to take out?

    Code:
        <td valign="top"> <table cellpadding="3" cellspacing="5" width="100%">
                  <tr> 
                    
                  </tr>
                </table>
    			</td>
    </tr>
    </table>
    Thanks

  6. #6
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not post (or link to your page) the whole code for your page... doesn't really make sense without it.... even in the above code (the 2nd lot), you have a <tr> </tr> without any <td>s within .

    Looks like you may be nesting tables, so all you need is a missing opening or closing tag and you will have a problem.

    Nadia

  7. #7
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the whole code.

    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" xml:lang="en" lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="Description" e" />
    <meta name="Keywords" content="" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body bgcolor="#242424">
    <center><?php include ("header.html");?></center>
    <table width="800" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>
    		<td colspan="9">
    
    			<img src="images/layout_10.gif" width="800" height="2" alt="10"/></td>
    	</tr>
    	<tr>
    		<td colspan="9">
    			<img src="images/layout_11.gif" width="800" height="1" alt="11"/></td>
    	</tr>
    	<tr>
    		<td colspan="3" valign="top" bgcolor="#D8D8D8" style="background-image:url(images/layout_12.gif);">
    <table width="185" cellpadding="0" cellspacing="0">
    
    <tr>
              <td valign="top"> <table cellpadding="3" cellspacing="5" width="100%">
             
                </table>
    			</td>
    </tr>
    </table><?php include ("left.html");?>
    										
        </td>
    		<td colspan="6" valign="top" bgcolor="#EDEDED">
    <table width="615" class="content" cellpadding="0" cellspacing="0">
    <tr>
              <td valign="top" width="430" class="content"> <div align="center"><a href="http://www.celebritypicsworld.com"><u>Home</u></a> 
                  - <a href="mailto:%20myselfuk%20AT%20techemail%20DOT%20com"><u>Contact</u></a><br />
    
    <hr />
                  <h1><font color="#FF0000">TITLE</font></h1>
                 
              
                
    
                  
                    <br />
                  </p>
                  </div>
                </td>
    
    
              <td valign="top" bgcolor="#D8D8D8" width="185" style="background:url(images/layout_12_2.gif);">
    
                <?php include ("right.html");?>
              </td>
    </tr>
    </table>
    
    	</td>
    	</tr>
    	
    	<tr>
    		<td>
    			<img src="images/spacer.gif" width="81" height="1" alt="spacer" /></td>
    
    		<td>
    			<img src="images/spacer.gif" width="77" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="27" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="80" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="109" height="1" alt="spacer" /></td>
    		<td>
    
    			<img src="images/spacer.gif" width="107" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="112" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="86" height="1" alt="spacer" /></td>
    		<td>
    			<img src="images/spacer.gif" width="121" height="1" alt="spacer" /></td>
    	</tr>
    </table>
    
    <div align="center"></div>
    </body>
    </html>
    The only error that comes up when trying to validate is the tr in the first bit of code.

  8. #8
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ross19821982
    I need another quick bit of help, same problem TR problem, sure it's simple but everything I try just makes more errors, even if I take out the TR it says to take out?

    Code:
        <td valign="top"> <table cellpadding="3" cellspacing="5" width="100%">
                   <tr> 
                     
                   </tr>
                 </table>
     			</td>
     </tr>
     </table>
    Thanks
    Same problem as before - you don't have any <td>s in the middle <tr>.

  9. #9
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I just add a td?

  10. #10
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo
    Yep. A TR must contain at least one cell:
    Code:
    <!ELEMENT TR - O (TH|TD)+>

  11. #11
    SitePoint Evangelist
    Join Date
    Jul 2003
    Location
    uk
    Posts
    503
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right, gotcha, thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •