Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

code query


JemCraft

Recommended Posts

I am using html validator to try and sort out my site and (one of the many) errors it has come up with is

 

The "width" attribute has an invalid attribute value "383px". Try using one of the following values: a percent, a positive integer, or "0" (zero). The "p" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "dd", "td", and "th". This element may not be contained in "dl" and "table".

 

The code for this bit is:

 

<div id=col5 >
<table width=383px border=0 cellpadding=0 cellspacing=0>
<p>

 

Can anyone help?

 

thanks

Link to comment
Share on other sites

 <table width="383" border="0" cellpadding="0" cellspacing="0">

 

you will need to add the <tr> and <td> before you can use the <p>

 

 <table width="383" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

 <table width="383" border="0" cellpadding="0" cellspacing="0">

 

you will need to add the <tr> and <td> before you can use the <p>

 

 <table width="383" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>

 

I notice you also took the 'px' off the end of the 'table width="383" would that be all I needed to do for that bit as well?

 

	<table width=383px border=0 cellpadding=0 cellspacing=0>
<p>
<tr><td valign=top align=left>

 

Also the next bit of th code has the <tr> and <td> bit mentioned, so should the <p> go after them?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...