ceu-notes/1/LMSGI/form-test/index.html

34 lines
1.0 KiB
HTML
Raw Normal View History

2021-11-02 17:52:45 +00:00
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>My Form Test</title>
</head>
<body>
<h2>Sign-Up Form</h2>
<form>
<label for="fname" >Name:</label>
<input type="text" name="fname" ><br />
<label for="fsurname" >Surname:</label>
<input type="text" name="fsurname" ><br />
<label for="fbirthday" >Birthday:</label>
<input type="date" name="fbirthday" ><br />
<label for="fdni" >DNI:</label>
<input type="text" name="fdni" pattern="[0-9]{8}[A-Z]" ><br />
<label for="fsex" >Sex:</label><br />
<input type="radio" id="male" name="fsex" value="Male" >
<label for="male" >Male</label><br />
<input type="radio" id="female" name="fsex" value="Female" >
<label for="female" >Female</label><br />
<label for="faddress" >Address:</label>
<input type="text" name="faddress" ><br />
<label for="fzipcode" >ZIP Code:</label>
<input type="text" name="fzipcode" pattern="[0-9]+" ><br />
<input type="submit" >
</form>
</body>
</html>