66 < link rel ="stylesheet " href ="css/style.css ">
77 < link rel ="icon " type ="image/x-icon " href ="favicon/favicon.ico "> <!--Link to favicon-->
88 < link href ='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css ' rel ='stylesheet '> <!--Link to boxicons--> <!--Link to boxicons-->
9- < script src ="scripts/script.js "> </ script > <!--Link to script file-->
9+ < script src ="scripts/script.js " defer > </ script > <!--Link to script file-->
1010 </ head >
1111 < body >
1212 < header >
@@ -17,33 +17,33 @@ <h1>Form API</h1>
1717 </ header >
1818 < main >
1919 <!--Insert form here-->
20- < form action ="">
20+ < form action ="" id =" userForm " novalidate >
2121 <!--Insert form title-->
2222 < h2 > Please Fill Out the Form</ h2 >
2323
2424 <!--Prompt the user for first name-->
2525 < label for ="firstName "> First Name:</ label > < br >
26- < input type ="text " id ="firstName " name ="firstName "> < br >
26+ < input type ="text " id ="firstName " name ="firstName " required > < br >
2727
2828 <!--Prompt the user for last name-->
2929 < label for ="lastName "> Last Name:</ label > < br >
30- < input type ="text " id ="lastName " name ="lastName "> < br >
30+ < input type ="text " id ="lastName " name ="lastName " required > < br >
3131
3232 <!--Prompt the user for email-->
3333 < label for ="email "> Email:</ label > < br >
34- < input type ="email " id ="email " name ="email " autocomplete ="email "> < br >
34+ < input type ="email " id ="email " name ="email " autocomplete ="email " required > < br >
3535
3636 <!--Prompt the user for phone number-->
3737 < label for ="phoneNumber "> Phone Number:</ label > < br >
38- < input type ="tel " id ="phoneNumber " name ="phoneNumber "> < br >
38+ < input type ="tel " id ="phoneNumber " name ="phoneNumber " required > < br >
3939
4040 <!--Prompt the user for address-->
4141 < label for ="address "> Address:</ label > < br >
42- < input type ="text " id ="address " name ="address " autocomplete ="street-address "> < br >
42+ < input type ="text " id ="address " name ="address " autocomplete ="street-address " required > < br >
4343
4444 <!--Prompt the user for age-->
4545 < label for ="age "> Age:</ label > < br >
46- < select name ="age " id ="age ">
46+ < select name ="age " id ="age " required >
4747 < option value ="" disabled selected > Select Age</ option >
4848 </ select > < br >
4949
@@ -74,15 +74,11 @@ <h2>Please Fill Out the Form</h2>
7474
7575 <!--Prompt the user for subject line-->
7676 < label for ="subjectLine "> Subject Line:</ label > < br >
77- < input type ="text " id ="subjectLine " name ="subjectLine "> < br >
77+ < input type ="text " id ="subjectLine " name ="subjectLine " required > < br >
7878
7979 <!--Prompt the user for message-->
8080 < label for ="message "> Message:</ label > < br >
81- < textarea id ="message " name ="message "> </ textarea > < br >
82-
83- <!--Prompt the user for file upload-->
84- < label for ="fileUpload "> File Upload:</ label > < br >
85- < input type ="file " id ="fileUpload " name ="fileUpload "> < br >
81+ < textarea id ="message " name ="message " required rows ="8 "> </ textarea > < br >
8682
8783 < div class ="buttonContainer ">
8884 <!--Submit button-->
0 commit comments