Skip to content

Commit c968b94

Browse files
committed
Adjusted the name field to have at least 2 non space characters
1 parent a3eb470 commit c968b94

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1>Product Pick</h1>
1616
<!-- write your html here-->
1717
<p>
1818
<label for="name"> Name:</label>
19-
<input type="text" id="name" name="user_name" required/>
19+
<input type="text" id="name" name="user_name" required pattern=".*\S.*\S.*" title="Please enter at least 2 non-space characters"/>
2020
</p>
2121
<p>
2222
<label for="mail">Email: </label>
@@ -63,12 +63,16 @@ <h1>Product Pick</h1>
6363

6464
<!--
6565
try writing out the requirements first as comments
66+
- What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.
67+
-What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
68+
- What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
69+
- What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL
6670
this will also help you fill in your PR message later-->
6771
</form>
6872
</main>
6973
<footer>
7074
<!-- change to your name-->
71-
<p>By HOMEWORK SOLUTION</p>
75+
<p>By Christelle Boten</p>
7276
</footer>
7377
</body>
7478
</html>

0 commit comments

Comments
 (0)