Skip to content

Instantly share code, notes, and snippets.

@diegocaxito
Created December 13, 2011 10:14
Show Gist options
  • Save diegocaxito/1471529 to your computer and use it in GitHub Desktop.
Save diegocaxito/1471529 to your computer and use it in GitHub Desktop.
Simple html5 validation formats
<!DOCTYPE html>
<html lang="en">
<head>
<title>Teste de Form</title>
</head>
<body>
<form>
<label for=form-name>Name</label>
<input name=form-name id=form-name type=text required />
<label for=form-email >Email</label>
<input for=form-email id=form-email type=email required></input>
<label for=form-url>URL</label>
<input name=form-url id=form-url type=url />
<label for=form-comment>Comment</label>
<textarea name=form-comment id=form-comment required></textarea>
<input type=range min=1 max=11 name=tap />
<input type="submit"/>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment