File tree Expand file tree Collapse file tree
user-input-with-forms/studio Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <!doctype html>
1+ <!DOCTYPE html>
22< html >
33< head >
4- < meta charset ="utf-8 ">
5- < script >
4+ < meta charset ="utf-8 ">
5+ < title > Custom Search Form</ title >
6+ < style >
7+ body {
8+ background-color : gray;
9+ color : blue;
10+ font-size : 200% ;
11+ }
12+ form {
13+ max-width : 600px ;
14+ margin : auto;
15+ padding : 20px ;
16+ }
17+ input [type = "text" ], input [type = "submit" ] {
18+ font-size : 1em ;
19+ }
20+ </ style >
21+ < script >
622 window . addEventListener ( "load" , function ( ) {
723 document . getElementById ( "searchForm" ) . addEventListener ( "submit" , function ( event ) {
824 event . preventDefault ( ) ;
2339 this . submit ( ) ;
2440 } ) ;
2541 } ) ;
26- </ script >
42+ </ script >
2743</ head >
2844< body >
2945
30- < form id ="searchForm ">
31- < input type ="text " name ="q " placeholder ="Search... ">
46+ < form id ="searchForm ">
47+ < input type ="text " name ="q " placeholder ="Search... " style =" font-size: 1em; " >
3248 < div >
3349 < input type ="radio " id ="google " name ="engine " value ="google " checked >
3450 < label for ="google "> Google</ label >
4258 < input type ="radio " id ="ask " name ="engine " value ="ask ">
4359 < label for ="ask "> Ask</ label >
4460 </ div >
45- < input type ="submit " value ="Go! ">
46- </ form >
61+ < input type ="submit " value ="Go! " style =" font-size: 1em; " >
62+ </ form >
4763
4864</ body >
4965</ html >
You can’t perform that action at this time.
0 commit comments