Site Sponsors

Archive for the ‘Form and Input’ Category

Creating a valid XHTML form

Wednesday, September 10th, 2008

Below shows you how to create a valid XHTML form using the latest DOCTYPE XHTML 1.1 version.

<!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">
<head>
<title>Valid XHTML form</title>
<meta http-equiv="content-type" content="charset=ISO-8859-1" />
</head>
	<body>
		<form action="">
			<fieldset>
				<label for="email">Email</label> <input type="text" name="email" id="email" />
				<input type="submit" name="submit" value="send" />
			</fieldset>
		</form>
	</body>
</html>