Skip to content

Commit 507e038

Browse files
authored
error fixed - Added quantity input to T-shirt order form
1 parent 3f3dd7b commit 507e038

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
content="T-shirt order form for customers to place orders"
1010
/>
1111
<meta name="viewport" content="width=device-width, initial-scale=1" />
12-
<link rel="stylesheet" href="style.css" />
1312
</head>
1413
<body>
1514
<main>
@@ -19,6 +18,7 @@
1918
- What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
2019
- What colour should this T-shirt be? I must provide 3 options and to ensure they do not choose other colours.
2120
- What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL and to ensure they do not choose other sizes.
21+
- How many does the customer want? I must collect a number for quantity of t-shirts and ensure the number is between 1 and 100.
2222
-->
2323
<header>
2424
<h1>T-shirt Order Form</h1>
@@ -31,7 +31,7 @@ <h1>T-shirt Order Form</h1>
3131
name="name"
3232
type="text"
3333
minlength="2"
34-
placeholder="First Name Surname"
34+
placeholder="FirstName Surname"
3535
pattern="[\p{L} ]{2,}"
3636
required
3737
/>
@@ -66,7 +66,19 @@ <h1>T-shirt Order Form</h1>
6666
<option value="L">L</option>
6767
<option value="XL">XL</option>
6868
<option value="XXL">XXL</option>
69-
</select>
69+
</select>
70+
<hr />
71+
72+
<label for="quantity">Quantity:</label>
73+
<input
74+
id="quantity"
75+
name="quantity"
76+
type="number"
77+
min="1"
78+
max="100"
79+
value="1"
80+
required
81+
/>
7082

7183
<hr />
7284
<button type="submit">Submit</button>

0 commit comments

Comments
 (0)