11<!DOCTYPE html>
22< html lang ="en ">
3- < head >
4- < meta charset ="UTF-8 " />
5- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6- < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7- < link rel ="stylesheet " href ="style.css " />
8- < title > Form Validator</ title >
9- </ head >
10- < body >
11- < div class ="container ">
12- < form id ="form " class ="form ">
13- < h2 > Register With Us</ h2 >
14- < div class ="form-control ">
15- < label for ="username "> Username</ label >
16- < input type ="text " id ="username " placeholder ="Enter username " />
17- < small > Error message</ small >
18- </ div >
19- < div class ="form-control ">
20- < label for ="email "> Email</ label >
21- < input type ="text " id ="email " placeholder ="Enter email " />
22- < small > Error message</ small >
23- </ div >
24- < div class ="form-control ">
25- < label for ="password "> Password</ label >
26- < input type ="password " id ="password " placeholder ="Enter password " />
27- < small > Error message</ small >
28- </ div >
29- < div class ="form-control ">
30- < label for ="password2 "> Confirm Password</ label >
31- < input
32- type ="password "
33- id ="password2 "
34- placeholder ="Enter password again "
35- />
36- < small > Error message</ small >
37- </ div >
38- < button type ="submit "> Submit</ button >
39- </ form >
40- </ div >
413
42- < script src ="script.js "> </ script >
43- </ body >
44- </ html >
4+ < head >
5+ < meta charset ="UTF-8 " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
8+ < link rel ="stylesheet " href ="style.css " />
9+ < title > Form Validator</ title >
10+ </ head >
11+
12+ < body >
13+ < div class ="container ">
14+ < form id ="form " class ="form ">
15+ < h2 > Register With Us</ h2 >
16+ < div class ="form-control ">
17+ < label for ="username "> Username</ label >
18+ < input type ="text " id ="username " placeholder ="Enter username " />
19+ < small > Error message</ small >
20+ </ div >
21+ < div class ="form-control ">
22+ < label for ="email "> Email</ label >
23+ < input type ="text " id ="email " placeholder ="Enter email " />
24+ < small > Error message</ small >
25+ </ div >
26+ < div class ="form-control ">
27+ < label for ="password "> Password</ label >
28+ < input type ="password " id ="password " placeholder ="Enter password " />
29+ < small > Error message</ small >
30+ </ div >
31+ < div class ="form-control ">
32+ < label for ="password2 "> Confirm Password</ label >
33+ < input type ="password " id ="password2 " placeholder ="Enter password again " />
34+ < small > Error message</ small >
35+ </ div >
36+ < button type ="submit "> Submit</ button >
37+ </ form >
38+ </ div >
39+
40+ < script src ="script.js "> </ script >
41+ </ body >
42+
43+ </ html >
0 commit comments