Skip to content

Commit c00ddfc

Browse files
committed
add name, email input boxes and submit button to test the form is working
1 parent c44123d commit c00ddfc

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -13,15 +13,35 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
16+
<!-- try writing out the requirements first as comments
1917
this will also help you fill in your PR message later-->
18+
<!-- Customer name: required, at least two non-space characters -->
19+
<label for="customer-name">Name</label>
20+
<input
21+
id="customer-name"
22+
name="customer-name"
23+
type="text"
24+
required
25+
pattern=".*\S.*\S.*"
26+
title="Please enter your name, or at least two non-space characters."
27+
/>
28+
<!-- Customer email: required, valid email format -->
29+
<label for="customer-email">Email</label>
30+
<input
31+
id="customer-email"
32+
name="customer-email"
33+
type="email"
34+
required
35+
/>
36+
<!-- T-shirt colour: required, 3 choices -->
37+
<!-- T-shirt size: required, XS, S, M, L, XL, XXL -->
38+
<!-- Submit button -->
39+
<button type="submit">Order T-shirt</button>
2040
</form>
2141
</main>
2242
<footer>
2343
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
44+
<p>By Martim Lou</p>
2545
</footer>
2646
</body>
2747
</html>

0 commit comments

Comments
 (0)