File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+ < meta name ="keywords " content ="Web development,Forms-HTML ">
8+ < meta name ="robots " content ="INDEX,FOLLOW ">
9+ < title > Forms-HTMl</ title >
10+ </ head >
11+ < body >
12+ < h2 > Forms in HTMl</ h2 > < hr >
13+ < div >
14+ < h4 > School Student Information</ h4 >
15+ </ div >
16+ < form action ="form.php ">
17+ <!-- using label tags so for smoothness and user friendly sites
18+ label for ="" should be same with the id name
19+ placeholder gives you an imaginary text in your forms-->
20+ < label for ="name "> Name : </ label >
21+ < input type ="text " placeholder ="Enter your name " name ="myname " id ="name ">
22+ < div >
23+ Class : < input type ="number " name ="myclass " placeholder ="Enter your class ">
24+ </ div >
25+ < div >
26+ Email : < input type ="email " name ="myemail " placeholder ="Enter your email ">
27+ </ div >
28+ < div >
29+ Date : < input type ="date " name ="mydate " >
30+ </ div >
31+ < div >
32+ Confirm : < input type ="checkbox " name ="myeligibility ">
33+ </ div >
34+ < div >
35+ Gender : Male < input type ="radio " name ="mygender "> Female < input type ="radio " name ="mygender "> Others < input type ="radio " name ="mygender "> None < input type ="radio " name ="mygender ">
36+ </ div >
37+ < div >
38+ Write about yourself : < textarea name ="mytext " cols ="30 " rows ="10 " placeholder ="Say something about yourself "> </ textarea >
39+ </ div >
40+ < div >
41+ < input type ="submit " name ="Submit Now ">
42+ < input type ="reset " name ="reset now ">
43+ </ div >
44+ </ form >
45+ </ body >
46+ </ html >
You can’t perform that action at this time.
0 commit comments