Skip to content

Commit 871a802

Browse files
committed
HTML form with validation.
1 parent e05ce3f commit 871a802

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

days/005-008-html5/demos/signup/index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ <h1>Sign up for FoxRem</h1>
1515

1616
<form action="" method="post">
1717

18-
<input type="text" name="full_name" placeholder=" full name">
19-
<input type="text" name="email" placeholder=" email">
20-
<input type="text" name="password" placeholder=" password">
21-
<select name="heard_of">
18+
<input type="text" name="full_name" required placeholder=" full name">
19+
<input type="email" name="email" required placeholder=" email">
20+
<input type="password" minlength="6" name="password" required placeholder=" password">
21+
<input type="number" min="18" name="age" required placeholder=" age in years">
22+
<select name="heard_of" required>
2223
<option value="" selected>Please select an option</option>
2324
<option value="podcast">Podcast</option>
2425
<option value="search">Search engine</option>

0 commit comments

Comments
 (0)