|
5 | 5 | <title>Form API</title> |
6 | 6 | <link rel="stylesheet" href="css/style.css"> |
7 | 7 | <link rel="icon" type="image/x-icon" href="favicon/favicon.ico"><!--Link to favicon--> |
| 8 | + <script src="scripts/script.js"></script><!--Link to script file--> |
8 | 9 | </head> |
9 | 10 | <body> |
10 | 11 | <header> |
@@ -38,11 +39,34 @@ <h2>Please Fill Out the Form</h2> |
38 | 39 |
|
39 | 40 | <!--Prompt the user for age--> |
40 | 41 | <label for="age">Age:</label> <br> |
41 | | - <input type="number" id="age" name="age"> <br> |
| 42 | + <select name="age" id="age"> |
| 43 | + <option value="" disabled selected>Select Age</option> |
| 44 | + </select><br> |
42 | 45 |
|
43 | 46 | <!--Prompt the user for year in school --> |
44 | | - <label for="yearInSchool">Year in School:</label> <br> |
45 | | - <input type="number" id="yearInSchool" name="yearInSchool"> <br> |
| 47 | + <label for="year">Year:</label> <br> |
| 48 | + |
| 49 | + <!--Create radio container--> |
| 50 | + <div class="radioContainer"> |
| 51 | + <!--Create radio buttons--> |
| 52 | + |
| 53 | + <!--Freshman--> |
| 54 | + <input type="radio" id="freshman" name="year" value="freshman"> |
| 55 | + <label for="freshman" class="radioLabel">Freshman</label> <br> |
| 56 | + |
| 57 | + <!--Sophomore--> |
| 58 | + <input type="radio" id="sophomore" name="year" value="sophomore"> |
| 59 | + <label for="sophomore" class="radioLabel">Sophomore</label> <br> |
| 60 | + |
| 61 | + <!--Junior--> |
| 62 | + <input type="radio" id="junior" name="year" value="junior"> |
| 63 | + <label for="junior" class="radioLabel">Junior</label> <br> |
| 64 | + |
| 65 | + <!--Senior--> |
| 66 | + <input type="radio" id="senior" name="year" value="senior"> |
| 67 | + <label for="senior" class="radioLabel">Senior</label> <br> |
| 68 | + </div> |
| 69 | + |
46 | 70 |
|
47 | 71 | <!--Prompt the user for subject line--> |
48 | 72 | <label for="subjectLine">Subject Line:</label> <br> |
|
0 commit comments