There was an error while loading. Please reload this page.
1 parent 965073e commit 88b1696Copy full SHA for 88b1696
1 file changed
Form-Controls/index.html
@@ -22,9 +22,16 @@ <h1>Product Pick</h1>
22
<form>
23
<!-- name and email -->
24
<label for="name">Name:</label>
25
- <input type="text" name="name" value="" />
+ <input
26
+ required
27
+ type="text"
28
+ name="name"
29
+ value=""
30
+ title="Only letters (2-50 characters)"
31
+ pattern="^[a-zA-Z]{2,50}$"
32
+ />
33
<label for="email">Email:</label>
- <input type="text" name="email" value="" />
34
+ <input required type="email" name="email" value="" />
35
36
<!-- colours -->
37
<label for="color">Choose a color:</label>
0 commit comments