thanxLine 195, column 22: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<table width = "190px">
xhtml/css validation error
Moderator: General Moderators
xhtml/css validation error
can anyone tell me why this is?
sorry i thought i edited that when i first posted. something musta happened...
Code: Select all
<table width = "190px">
<tr>
<td colspan="2"><strong>Suscribe to our mailing list:</strong></td>
</tr>
<tr>
<td valign="middle" >Name:</td>
<td><input type="text" name="E_Name" class="maillist"/></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="E_Email" class="maillist"/></td>
</tr>
<tr>
<td>Country:</td>
<td> <select name="E_Country">
<option value="Select your County">Select your Country</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua and Barbuda</option>
<option value="AR">Argentina</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="mailSend" value="Send" class="button"/></td>
</tr>
</table>copy paste
I copied and pasted your code into xml spy and validated it and it says it was fine.
here is the full code.
is there any thing else around the code that could be causing trouble?
here is the full code.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Enter the title of your XHTML document here</title>
</head>
<body>
<table width = "190px">
<tr>
<td colspan="2"><strong>Suscribe to our mailing list:</strong></td>
</tr>
<tr>
<td valign="middle" >Name:</td>
<td><input type="text" name="E_Name" class="maillist"/></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="E_Email" class="maillist"/></td>
</tr>
<tr>
<td>Country:</td>
<td> <select name="E_Country">
<option value="Select your County">Select your Country</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua and Barbuda</option>
<option value="AR">Argentina</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="ZR">Zaire</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="mailSend" value="Send" class="button"/></td>
</tr>
</table>
</body>
</html>hi phpScott, thanx for that. when i use the http://validator.w3.org/ validator i get no errors but that one about the table. could be something wrong but i cant spot it because of the no errors things.
http://www.modelaircraft.co.nz/index.php this is the page i am validating.
http://www.modelaircraft.co.nz/index.php this is the page i am validating.
I did get the code and tried to validate it but your right the <table> seemed a problem.
I changed the preceeding <p> tag to a <div> tag and it validated fine.
I'm not 100% sure but I don't thing you can use <p> to apply a style to a table as <p> has it's own subtle meaning for formatting of text.
try and see what happens.
BTW you style sheet positioning in firefox is off as there is overlapping.
Otherwise the site looks good and should be intersting next time in NZ visiting family I will have to check it out.
I changed the preceeding <p> tag to a <div> tag and it validated fine.
I'm not 100% sure but I don't thing you can use <p> to apply a style to a table as <p> has it's own subtle meaning for formatting of text.
try and see what happens.
BTW you style sheet positioning in firefox is off as there is overlapping.
Otherwise the site looks good and should be intersting next time in NZ visiting family I will have to check it out.
thanx guys for your help! did not know that! so basically do not use <p> tags around a table?
phpScott, was getting to browser accability when fixed up errors. how do i go about seeing if the site works across alot of browsers? download all the popular ones and test?
and also how would i go about tweaking the site to display on all browsers?
fixing a problem for one browser might create other problems on other browsers?
any help would be great as i am about to embark into the unknowen for myself!
phpScott, was getting to browser accability when fixed up errors. how do i go about seeing if the site works across alot of browsers? download all the popular ones and test?
and also how would i go about tweaking the site to display on all browsers?
fixing a problem for one browser might create other problems on other browsers?
any help would be great as i am about to embark into the unknowen for myself!
Yes download and run is the way I do it, I have firefox, IE, Netscape which will cover most of the market.
Is far as cross browser support for css I find one on the web I like try it and slowly and carefully modify it.
I curse, grumbley and bang my head against the keyboard and realize that I don't know any where's enough about css to be able to make one cross browser compatible with any thing more then simple scripts.
Sorry.
Is far as cross browser support for css I find one on the web I like try it and slowly and carefully modify it.
I curse, grumbley and bang my head against the keyboard and realize that I don't know any where's enough about css to be able to make one cross browser compatible with any thing more then simple scripts.
Sorry.