Help me to validate this xhtml. Thx

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

abcde

Established Member
Impact
16
PHP:
<!--top-->
<table width="937" bgcolor="#7F7F7F" cellpadding="0" cellspacing="0" border="0" align="center">
	<tr>
        <td align="left" valign="top" width="13"><img src="$stylevar[imgdir_misc]/b_top_l.gif" alt="" width="13" height="15" /></td>
        <td align="left" valign="top" width="100%"><img src="$stylevar[imgdir_misc]/b_top_b.gif" alt="" width="100%" height="15" /></td>
        <td align="left" valign="top" width="13"><img src="$stylevar[imgdir_misc]/b_top_r.gif" alt="" width="13" height="15" /></td>
	</tr>
	<tr>
		<td background="$stylevar[imgdir_misc]/bg_l.gif"><img src="$stylevar[imgdir_misc]/bg_l.gif" width="13" border="0" alt=""/></td>
		<td>
<!-- end top -->

some text here
<!-- foot-->
        </td>
        <td background="$stylevar[imgdir_misc]/bg_r.gif" width="13"><img src="$stylevar[imgdir_misc]/bg_r.gif" width="13" border="0" alt=""/></td>
    </tr>
    <tr>
        <td height="31"><img src="$stylevar[imgdir_misc]/b_bt_l.gif" width="13" border="0"  alt=""/></td>
        <td background="$stylevar[imgdir_misc]/b_bt_b.gif" height="31" style="padding-right:80px;"><img src="$stylevar[imgdir_misc]/b_bt_1.gif" align="right" border="0"  alt=""/></td>
        <td height="31"><img src="$stylevar[imgdir_misc]/b_bt_r.gif" width="12" border="0" alt=""/></td>
    </tr>
</table>
<!-- end foot -->
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
First of all, if you want the output to be XHTML compliant, you should use CSS for styling and position instead of tables. If stuck with tables, you can modify the attributes of the TABLE and TD elements using CSS:

PHP:
<!--top--> 
<table width="937" style="background:#7F7F7F; text-align:center; border:0" cellpadding="0" cellspacing="0"> 
	<tr> 
		<td align="left" valign="top" style="width:13px"><img src="$stylevar[imgdir_misc]/b_top_l.gif" alt="" style="width:13px; height:15px" /></td> 
		<td align="left" valign="top" style="width:100%"><img src="$stylevar[imgdir_misc]/b_top_b.gif" alt="" style="width:100%; height:15px"  /></td> 
		<td align="left" valign="top" style="width:13px"><img src="$stylevar[imgdir_misc]/b_top_r.gif" alt="" style="width:13px; height:15px" /></td> 
	</tr> 
	<tr> 
		<td style="background-image: url('$stylevar[imgdir_misc]/bg_l.gif');"><img src="$stylevar[imgdir_misc]/bg_l.gif" style="width:13px; border:0" alt=""/></td> 
		<td> 
<!-- end top --> 

some text here 
<!-- foot--> 
		</td> 
		<td style="background-image: url('$stylevar[imgdir_misc]/bg_r.gif'); width:13px"><img src="$stylevar[imgdir_misc]/bg_r.gif" style="width:13px; border:0" alt=""/></td> 
	</tr> 
	<tr> 
		<td style="height:31px"><img src="$stylevar[imgdir_misc]/b_bt_l.gif" style="width:13px; border:0"  alt=""/></td> 
		<td style="background-image: url('$stylevar[imgdir_misc]/b_bt_b.gif'); height:31px; padding-right:80px;"><img src="$stylevar[imgdir_misc]/b_bt_1.gif" style="border:0px; text-align:right;"  alt=""/></td> 
		<td style="height:31px"><img src="$stylevar[imgdir_misc]/b_bt_r.gif" style="width:12px; border:0" alt=""/></td> 
	</tr> 
</table> 
<!-- end foot -->

Try experimenting with the W3 validator using the XHTML standard of your choice (1.1 Strict, transitional, ...) and input your entire HTML into the validator for hints and tips.
 
1
•••
Thanks. RP added.
 
0
•••
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back