Skip to content

Commit 05ed32d

Browse files
committed
Add name and email inputs with validation rules
1 parent 9b1da51 commit 05ed32d

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,26 @@
1111
<header>
1212
<h1>Product Pick</h1>
1313
</header>
14+
1415
<main>
1516
<form>
1617
<!-- REQUIREMENTS -->
1718
<!-- what is the custome's name? (min 2 characters) -->
1819
<div>
1920
<label for="name">Full Name:</label>
20-
<input type="text" id="name" name="name" />
21+
<input type="text" id="name" name="name" required mainlength="2" pattern=".{2,}" />
2122
</div>
2223

23-
<dv>
24+
<!-- What is the customer's email? (must be valid) -->
25+
<div>
2426
<label for="email">Email Address:</label>
25-
<input type="email" id="email" name="email" />
26-
</dv>
27-
27+
<input type="email" id="email" name="email" required />
28+
</div>
29+
30+
<!-- What colour should this t-shirt be? (only 3 options) -->
31+
<fieldset>
32+
33+
</fieldset>
2834

2935
</form>
3036
</main>

0 commit comments

Comments
 (0)