File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 < head >
44 < meta charset ="utf-8 " />
55 < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6- < title > My form exercise </ title >
6+ < title > Product Picker Form </ title >
77 < meta name ="description " content ="" />
88 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
99 </ head >
1010 < body >
1111 < header >
12- < h1 > Product Pick </ h1 >
12+ < h1 > Choose your product </ h1 >
1313 </ header >
1414 < main >
1515 < form >
16- <!-- write your html here-->
17- <!--
18- try writing out the requirements first as comments
19- this will also help you fill in your PR message later-->
16+ <!-- Requirements:
17+ - Ask for user name
18+ - Ask for product type
19+ - Ask for quantity
20+ - Add validation
21+ -->
22+
23+ < label for ="name "> Your Name:</ label >
24+ < input id ="name " name ="name " type ="text " required />
25+ < label for ="product "> Product:</ label >
26+ < select id ="product " name ="product " required >
27+ < option value =""> Select one</ option >
28+ < option value ="shoes "> Shoes</ option >
29+ < option value ="bag "> Bag</ option >
30+ < option value ="hat "> Hat</ option >
31+ </ select >
32+
33+ < label for ="qty "> Quantity:</ label >
34+ < input id ="qty " name ="qty " type ="number " min ="1 " max ="10 " required />
35+
36+ < button type ="submit "> Submit</ button >
2037 </ form >
2138 </ main >
2239 < footer >
23- <!-- change to your name-->
24- < p > By HOMEWORK SOLUTION</ p >
40+ < p > By Niangh Ciang</ p >
2541 </ footer >
2642 </ body >
2743</ html >
You can’t perform that action at this time.
0 commit comments