Created
July 25, 2012 14:39
-
-
Save jameshibbard/3176507 to your computer and use it in GitHub Desktop.
Simple HTML form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure 😄
https://wesbos.com/courses