DelphiFAQ Home Search:

W3C HTML validator complains about setting a table row height


comments3 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.


My HTML code contains table rows defined like this:
<tr height=5>
and the W3C's validator at complains that this attribute is not
valid according to 'HTML 4.01 Transitional'.
What can I do?


: Specify the row's height as part of the style attribute - like this:
<tr style='height:"5px"'>


2009-03-17, 06:08:19 from Delhi, India  
Is there any way in which we could specify the height in Percentage (%) and also make it valid through W3C??
2009-03-29, 11:29:29
kaman from Pakistan  
thanks alot it works

2013-12-11, 15:04:51
anonymous from Colombia  

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' ''>
<html xmlns:fb=' http://www.facebook..2008/fbml' xmlns:og=' http://opengraph.or..hema/'> <head>

<meta property='fb:page_id' content='43929265776' />
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>

    <table border='0' cellpadding='5' cellspacing='0' width='100%'>
    <td valign='middle' id='social'>
<div mc:edit='std_social'><a style='color:#FFF; font-size:16px;'>Enviar a un amigo</a>  </div></td>
    <td valign='top'><div mc:edit='std_footer'> <em>Copyright © 2013 Inexmoda, Todos los derechos reservados.</em> <br>
    & lt;/div></td></tr></table></td>< /tr></table></tr></table></center&er></body> </body> </html>



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: