Skip to content

Commit fc09d4a

Browse files
committed
Adding name and email fields
1 parent c44123d commit fc09d4a

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<!-- Customer name (required, at least 2 non-space characters) -->
2+
<!-- Customer email (required, valid email) -->
3+
<!-- T-shirt colour (required, choose 1 of 3 colours) -->
4+
<!-- T-shirt size (required, choose 1 of XS, S, M, L, XL, XXL) -->
5+
<!-- Submit button -->
6+
17
<!DOCTYPE html>
28
<html lang="en">
39
<head>
@@ -13,10 +19,20 @@ <h1>Product Pick</h1>
1319
</header>
1420
<main>
1521
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
22+
<label for="name">Name</label>
23+
<input
24+
type="text"
25+
id="name"
26+
name="name"
27+
required pattern=".*\S.*\S.*"
28+
/>
29+
<label for="email">Email</label>
30+
<input
31+
type="email"
32+
id="email"
33+
name="name"
34+
required
35+
/>
2036
</form>
2137
</main>
2238
<footer>

0 commit comments

Comments
 (0)