File tree 3 files changed +32
-0
lines changed
user-input-with-forms/chapter-examples/checkbox-inputs
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta name ="viewport " content ="width=device-width ">
6
+ < title > repl.it</ title >
7
+ < link href ="style.css " rel ="stylesheet " type ="text/css " />
8
+ </ head >
9
+ < body >
10
+ < form action ="https://handlers.education.launchcode.org/request-parrot " method ="post ">
11
+
12
+ <!-- single checkbox -->
13
+ < label > crew< input type ="checkbox " name ="crewReady "/> </ label >
14
+
15
+ <!-- group with different name -->
16
+ < h3 > Activities</ h3 >
17
+ < label > cooking< input type ="checkbox " name ="cooking "/> </ label >
18
+ < label > running< input type ="checkbox " name ="running "/> </ label >
19
+ < label > movies< input type ="checkbox " name ="movies "/> </ label >
20
+
21
+ <!-- group all with same name -->
22
+ < h3 > Ingredients</ h3 >
23
+ < label > Onion< input type ="checkbox " name ="ingredient " value ="onion "/> </ label >
24
+ < label > Butter< input type ="checkbox " name ="ingredient " value ="butter "/> </ label >
25
+ < label > Rice< input type ="checkbox " name ="ingredient " value ="rice "/> </ label >
26
+
27
+ < button > Send Report</ button >
28
+ </ form >
29
+ </ body >
30
+ </ html >
Original file line number Diff line number Diff line change
1
+ // Add Your Code Below
Original file line number Diff line number Diff line change
1
+ /*/ Add Your Code Below /*/
You can’t perform that action at this time.
0 commit comments