Skip to content

Commit 627518f

Browse files
authored
Wrote the requirements as comments and added the HTML structure for the Name and Email sections.
Added customer information form fields with validation requirements.
1 parent f5b9e81 commit 627518f

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ <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
19-
this will also help you fill in your PR message later-->
20-
</form>
16+
<h2>Customer information</h2>
17+
<!-- Customer name must contain at least two non-space characters.-->
18+
<label for="name">Name:</label>
19+
<input type="text" id="name" pattern=".*\S.*\S.*" required>
20+
<!-- Customer email must be valid and follow a consistent email address pattern.-->
21+
<label for="email">Email:</label>
22+
<input type="email" id="email" required>
23+
<!-- Provide 3 T-shirt colour options.-->
24+
<!-- Provide 6 size options: XS, S, M, L, XL, XXL-->
25+
</form>
2126
</main>
2227
<footer>
2328
<!-- change to your name-->

0 commit comments

Comments
 (0)