Tell us what’s happening:
Im stuck on build a job application form step 15 and 16
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Form Example</title>
<style>
body {
background-color: midnightblue;
color: whitesmoke;
font-family: Arial, sans-serif;
}
.container {
max-width: 600px;
margin: 30px auto;
padding: 20px;
background-color: #ffffff1a;
border-radius: 10px;
}
label {
display: block;
margin-top: 12px;
}
input,
select,
textarea {
width: 100%;
padding: 10px;
border: 2px solid gray;
border-radius: 5px;
background-color: #ffffff1a;
color: whitesmoke;
}
/* Style first input differently */
input:first-of-type {
border-radius: 15px;
}
/* Focus state */
input:focus,
textarea:focus {
border-color: dodgerblue;
outline: none;
}
/* Invalid state */
input:invalid,
select:invalid,
textarea:invalid {
border-color: red;
}
/* Valid state */
input:valid,
select:valid,
textarea:valid {
border-color: green;
}
.radio-group {
margin: 20px 0;
padding: 15px;
border: 1px solid gray;
border-radius: 5px;
}
.radio-group input[type="radio"] {
margin-right: 5px;
}
/* Checked radio button */
.radio-group input[type="radio"]:checked {
box-shadow: 0 0 5px lightgreen;
}
/* Change label color when radio is checked */
.radio-group input[type="radio"]:checked + label {
color: lightgreen;
font-weight: bold;
}
button {
display: block;
margin: 20px auto 0;
padding: 12px 20px;
font-size: 1.1rem;
border: none;
border-radius: 6px;
background-color: royalblue;
color: whitesmoke;
cursor: pointer;
}
button:hover {
background-color: midnightblue;
}
</style>
</head>
<body>
<div class="container">
<form>
<label for="name">Full Name</label>
<input type="text" id="name" required>
<label for="email">Email Address</label>
<input type="email" id="email" required>
<label for="position">Job Position</label>
<select id="position" required>
<option value="">Select a position</option>
<option>Developer</option>
<option>Designer</option>
</select>
<fieldset class="radio-group">
<legend>Availability</legend>
<input type="radio" id="full-time" name="availability" required>
<label for="full-time">Full-Time</label>
<input type="radio" id="part-time" name="availability">
<label for="part-time">Part-Time</label>
</fieldset>
<label for="message">Message</label>
<textarea id="message" rows="4" required></textarea>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
body {
background-color: midnightblue;
color: whitesmoke;
font-family: Arial, sans-serif;
}
.container {
max-width: 600px;
margin: 30px auto;
padding: 20px;
background-color: #ffffff1a;
border-radius: 10px;
}
/* Inputs & textarea */
input,
select,
textarea {
width: 100%;
padding: 10px;
border: 2px solid gray;
border-radius: 5px;
background-color: #ffffff1a;
color: whitesmoke;
}
/* Focus state (clean & standard) */
input:focus,
textarea:focus {
border-color: dodgerblue;
outline: none;
}
/* Radio group */
.radio-group {
margin: 20px 0;
padding: 15px;
border: 1px solid gray;
border-radius: 5px;
}
/* Checked radio button styling */
.radio-group input[type="radio"]:checked {
border-color: lightgreen;
background-color: lightgreen;
}
/* Button */
button {
background-color: royalblue;
color: whitesmoke;
border: none;
padding: 12px 20px;
border-radius: 6px;
cursor: pointer;
}
/* Hover state */
button:hover {
background-color: midnightblue;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0
Challenge Information:
Build a Job Application Form - Build a Job Application Form