Jump to content

feck

Members
  • Posts

    116
  • Joined

  • Last visited

Posts posted by feck

  1. Hello everyone,I'm new to this so please be gentle, I'm having trouble validating this piece of code.Basically the validator tell me that the document type does not allow labels or inputs where I've placed themalso that the end tag for the form is not finished.

    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb"><head><title>Test1</title><link rel="stylesheet" href="test.css" style="text/css" /></head><body><div id="wrap">	<div id="masthead"><h1>sillywebsite</h1></div>	<div id="leftnav"><h4>Welcome</h4>		<div id="buttonsContainer">			<div class="buttons">				<a href="index.html">Home</a>				<a href="search.html">Search</a>				<a href="test.html">test</a>			</div>		</div>	</div>	<div id="main"><h2>Please Sign In:</h2>		<form action="">			<label>Staff ID:<input type="text" name="staffID" size="10" maxlength="8"></input></label>			<label>Password:<input type="password" name="password" size="10" maxlength="8"></input></label>			<input type="submit" value="Submit" name="submit1" onclick="return Validate(this.form)"></input>			<input type="reset" value="Reset Form"></input>		</form>	</div>	<div id="footer"><h2>Footer Area</h2></div></div></body></html>

    Please help as this is bending my brain trying to figure out why it will not validate.Thankyou

×
×
  • Create New...