Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

  1. You should use the :checked pseudo-class on .radio-group input[type=“radio”] to add a border color when the radio button is selected.
    Failed:15. You should use the :checked pseudo-class on .radio-group input[type=“radio”] to add a background color when the radio button is selected.
    Failed:16. You should use the :checked pseudo-class on .radio-group input[type=“radio”] to add a box shadow when the radio button is selected.
    Failed:17. You should use the :checked pseudo-class on radio buttons t

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">
    <title>Job Application Form</title>
<link rel="stylesheet" href="styles.css">    
</head>
<body>
<div class="container">
    <form>
        <input type="text" id="name">Full Name</input>
        <input type="email" id="email">Email</input>
         <label for="position">Select Position:</label>
    <select id="position" name="position">
    <option>Agent</option>
    <option>Team Leader</option>
    <option>Manager</option>
    </select>
    <fieldset class="radio-group">
        <legend>Availability</legend>
        <input type="radio" name="availability">
        <label for="full-time">Full-time</label>
        <input type="radio" name="availability">
        <label for="part-time">Part-time</label>
        <textarea id="message">Enter your message here</textarea>
        <button type="submit">Submit</button>
    </fieldset>
    </form>
   
    
</div>
</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
  border-color:blue;
}
input:invalid, select:invalid,   textarea:invalid {
border-color:red;
}
input:valid, select:valid,   textarea:valid {
border-color:green;
}
button:hover {
  background-color:cyan;
}
.radio-group label {
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
.radio-group input[type="radio"]:checked + label {
  border-color:orange;
  background-color:orange;
  color:blue;
  box-shadow:0 0 5px yellow;
}
.radio-group input[type="radio"]:first-of-type + label {
  background-color: gray;
}

Your browser information:

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form

double check your css selector, there is something amiss there

1 Like