Skip to content

Commit d415f57

Browse files
authored
Added label for name input in the form
Added a label for the name input field in the form.
1 parent 7ec221f commit d415f57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ <h1>Product Pick</h1>
1414
</header>
1515
<main>
1616
<form>
17-
17+
<label>
1818
Enter your name:
1919
<input type="text" placeholder="Enter your name " name="aName" size="16" minlength="2" maxlength="16" pattern=".*\S.*\S.*" required>
20-
20+
</label>
2121
<!-- the size attribute control how wide the text box, "how many characters it can control-->
2222
<!-- the minlength attribute control the minimum number of characters required-->
2323
<!-- the maxlength attribute control the maximum number of characters required-->

0 commit comments

Comments
 (0)