Skip to content

Commit 8c47498

Browse files
committed
add option select to age, change year in school to 'year' and create radio buttons
1 parent 25d0155 commit 8c47498

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

formapi/formAPI.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<title>Form API</title>
66
<link rel="stylesheet" href="css/style.css">
77
<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-->
89
</head>
910
<body>
1011
<header>
@@ -38,11 +39,34 @@ <h2>Please Fill Out the Form</h2>
3839

3940
<!--Prompt the user for age-->
4041
<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>
4245

4346
<!--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+
4670

4771
<!--Prompt the user for subject line-->
4872
<label for="subjectLine">Subject Line:</label> <br>

0 commit comments

Comments
 (0)