Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A couple validation errors I don't understand 3

Status
Not open for further replies.
get rid of...
Code:
<csscriptdict import="import">

</csscriptdict>
<csactiondict>
		
</csactiondict>

Also - the remaining 2 errors seem pretty straightforward really
w3c validator said:
there is no attribute "height"

<tr height="34">
and
w3c validator said:
there is no attribute "background"

...td width="60" height="34" background="../../images/layer_dot_horiz_tabled.gif
For the DOCTYPE you are trying to validate against (XHTML Transitional) these attributes are no longer supported. These values should now be set with the use of style sheets.

Tony

Spirax-Sarco - steam traps control valves heat exchangers
Sun Villa - Luxury Florida accommodation
 
Ok - Everything is cool (still have to write the CSS for the tables though) except for 2 errors.

# Error Line 290 column 13: end tag for "tr" omitted, but OMITTAG NO was specified.

--> </table>

Info Line 283 column 7: start tag was here.

--> <tr>

The first one doesn't make sense because it's just a close tag for the table. I don't know what the problem is.

The second one isn't really an error but i still don't understand it.

 
It tells you that the parser hit the end table tag, when it expected another element. The second line explains this. You started a <tr> element and never closed it and also did not specify in the doctype that the end tag for this element can be omitted. So, put the </tr> before the </table> and you're set.
 
<you have to close your row tags
Code:
<tr></tr>[code]

there is now [green]</tr>[/green] before your table ends.
[code]
[red]<tr>[/red]
								<td width="60"></td>
								<td width="140"></td>
								<td width="5"></td>

								<td width="60">Address:</td>
								<td width="196"><input class="inputs" type="text" name="r_address" size="25" tabindex="9" /></td>
[blue]There should be a closing </tr> here[/blue]
</table>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Since I can't use the <tr> height tag, how do I control this CSS? What is the property I should be using?
 
You can use it on one of your <TD> rows to accomplish the same thing.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
So my table would be:

<td class="tableclass">
<table width="142" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="sidelinks">

<a href="../test.html">Sample Text</a></div>
</td>
</tr>
<tr>
<td>
<div class="sidelinks">
<a href="../test1.html">Sample Text2</a></div>
</td>
</tr>

</table>
 
Ah, nevermind.

I just got it.

Thanks guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top