Skip to content

Commit dc522f9

Browse files
committed
Add id attribute to name and email input
1 parent 9ac0b56 commit dc522f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ <h1>Product Pick</h1>
1717
<!-- Learning objectives
1818
*Interpret requirements and check against a list of criteria
1919
*Write a valid form
20-
Test with Devtools
21-
Refactor using Devtools
20+
*Test with Devtools
21+
*Refactor using Devtools
2222
*Use version control by committing often and pushing regularly to GitHub
2323
*Develop the habit of writing clean, well-structured, and error-free code
2424
@@ -30,7 +30,7 @@ <h1>Product Pick</h1>
3030
What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL
3131
3232
Testable criteria
33-
I have only used HTML and CSS.
33+
*I have only used HTML and CSS.
3434
*I have not used any JavaScript.
3535
3636
HTML
@@ -53,11 +53,11 @@ <h1>Product Pick</h1>
5353
<legend>Customer info</legend>
5454
<div>
5555
<label for="name">Name</label>
56-
<input type="text" required name="name" pattern=".*\S.*\S.*" />
56+
<input id="name" type="text" required name="name" pattern=".*\S.*\S.*" />
5757
</div>
5858
<div>
5959
<label for="email">Email</label>
60-
<input type="email" name="email" required />
60+
<input id="email" type="email" name="email" required />
6161
</div>
6262
</fieldset>
6363
<fieldset id="tshirt-info">

0 commit comments

Comments
 (0)