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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML validation help on W3

Status
Not open for further replies.

Unknown1157

Programmer
Oct 6, 2013
1
0
0
IE
I've been trying to validate my first xhtml webpage but I can't seem to get rid of the errors. Can someone please tell me what I'm doing wrong.
Thanks in advance.

P.S I used notepad++ but I had to remove the tabs because Yahoo!, for some reason won't let me upload it.



<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.1//EN"
"<html xmlns="<head>
<title>Membership Form</title>
</head>
<body>
<img src="ait-logo.png" alt="ait" width="100%" height="100%"/>
<h1>Register Now For The Web Development Club</h1>
<form method="post" action="mailto:jbloggs@ait.ie?subject=Website Info" enctype="text/plain">
<fieldset>
<legend>Personal Details</legend>
<table width="12%" border="0" cellpadding="1">
<tr align="left" valign="middle">
<td>First Name</td>
<td><input type="text" name="firstname"/></td>
</tr>
<tr align="left" valign="middle">
<td>Surname</td>
<td><input type="text" name="lastname"/></td>
</tr>
<tr align="left" valign="middle">
<td>Address 1</td>
<td><input type="text" name="address1"/></td>
</tr>
<tr align="left" valign="middle">
<td>Address 2</td>
<td><input type="text" name="address2"/></td>
</tr>
<tr align="left" valign="middle">
<td>Town</td>
<td><input type="text" name="town"/></td>
</tr>
<tr align="left" valign="middle">
<td>County</td>
<td><input type="text" name="county"/></td>
</tr>
<tr align="left" valign="middle">
<td><input type="radio" name="sex" value="male"/>Male</td>
<td><input type="radio" name="sex" value="female"/>Female</td>
</tr>
<tr align="left" valign="middle">
<td>Date of Birth</td>
<td><input type="text" name="dateofbirth"/></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Login Details</legend>
<table width="12%" border="0" cellpadding="2">
<tr align="left" valign="middle">
<td>Password</td>
<td><input type="password" name="pwd"/></td>
</tr><tr align="left" valign="middle">
<td>User Name</td>
<td><input type="text" name="username"/></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend> Course Details</legend>
<table width="12%" border="0" cellpadding="2">
<tr align="left" valign="middle"> </tr>
<td><input type="radio" name="enroll" value="enrolled"/>Enrolled in Game Dev</td>
<td><input type="radio" name="enroll" value="female"/>Enrolled in Cloud Dev</td>
<tr align="left" valign="middle">
<td>Year</td>
<td>
<select name="year">
<option value="first">First</option>
<option value="second">Second</option>
<option value="third">Third</option>
<option value="fourth">Fourth</option>
</select>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Mailing Lists</legend>
<table width="12%" border="0" cellpadding="2">
<tr align="left" valign="middle">
<td><input type="checkbox" name="tandc" value="accept"/></td>
<td>I wanted to be added to the mailing list</td>
<td><input type="checkbox" name="tandc" value="accept"/></td>
<td>I wanted to be notified about any special offers</td>
</tr></table>
</fieldset>
<fieldset>
<legend>Comments</legend>
<table width="12%" border="0" cellpadding="2" >
<tr align="left" valign="middle">
<td colspan="2"><input type="text" name="comment" value="Enter any comments" size="50"/></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>Submit Information</legend>
<table width="12%" border="0" cellpadding="2">
<tr align="left" valign="middle">
<td><input type="submit" value="Send"/></td>
<td><input type="reset" value="Reset"/></td>
</tr>
</table>
</fieldset>
</form>
<p style="text-align: center;">
<img src="alt="Valid XHTML 1.0 Strict" height="31" width="88"/>
</p>
</body>
</html>
 
<img> elements are not allowed as child elements of the body element in HTML 4.01 DTDs onwards.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Isn't the validation service telling you what is wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top