Skip to content

Commit 20f153f

Browse files
committed
Update index.html
add form tag to enable validation
1 parent 991b18a commit 20f153f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Form-Controls/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<body>
1010
<main>
1111
<h1>Order a T-Shirt</h1>
12+
<form>
1213

1314
<label for="name">Your Name</label>
1415
<input type="text" id="name" name="name" pattern=".*\S.*\S.*" required>
@@ -33,6 +34,7 @@ <h1>Order a T-Shirt</h1>
3334
</select>
3435

3536
<button type="submit">Order Now</button>
37+
</form>
3638
</main>
3739
</body>
3840
</html>

0 commit comments

Comments
 (0)