Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created July 25, 2012 14:39
Show Gist options
  • Save jameshibbard/3176507 to your computer and use it in GitHub Desktop.
Save jameshibbard/3176507 to your computer and use it in GitHub Desktop.
Simple HTML form
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Form validation example</title>
<style>
input{display:block; margin-bottom:10px;}
</style>
</head>
<body>
<h1>Form Validation Example</h1>
<h2>Please enter your name</h2>
<form action="validation_example.html" method="post">
<label for="first_name">First name:</label>
<input id="first_name" type="text" />
<label for="last_name">Last name:</label>
<input id="last_name" type="text" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
@jameshibbard
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment