Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

I’ve reviewed all the existing help posts on this, but just can’t figure out where I’m going wrong with Test #17. The code works - the text changes color when the associated radio button is selected. But it’s still being marked with an X.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Job Application Form</title>
</head>
<body>
    <h1>Job Application</h1>
<div class="container">
<form>
    <label for="name">Full Name: </label>
        <input type="text" id="name">
    <label for="email">Email:</label>
    <input type="email" id="email">
<label for="position">Position: </label>
<select id="position">
    <option>Cashier</option>
<option>Manager</option>
<option>Customer Service</option>
</select>
<fieldset class="radio-group">
<legend>Availability</legend>
<input type="radio" id="full-time" name="availability">
    <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">
</textarea>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
input:focus, textarea:focus {
border-color: red;
}
input:invalid, select:invalid, textarea:invalid {
  border-color:red;
}
input:valid, select:valid, textarea:valid {
border-color: green;
}
button:hover {
  background-color: skyblue;
}
.radio-group input[type="radio"]:checked {
  color: pink;
  border-color:purple;
  background-color: pink;
  box-shadow: 0 0 5px black;
}

input:first-of-type {
  border: 5px solid black;
}

.radio-group input[type="radio"]:checked + label {
  color: pink;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Challenge Information:

Build a Job Application Form - Build a Job Application Form

Hi.
This ID name does not match the one in your CSS.

Bless you. Thank you. Reading it out to my rubber duck just wasn’t cutting it.

1 Like