Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Test no.15 not passing. Not sure what to do. plz help

15. You should use the :checked pseudo-class on .radio-group input[type="radio"] to add a border color when the radio button is selected.

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">
  <title>Job Application Form</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <div class="container">
    <form action="#" method="post" aria-labelledby="title">
      <h1 id="title">Job Application Form</h1>

      <div class="form-group">
        <label for="name">Full Name</label>
        <input type="text" id="name" name="name" required aria-required="true" placeholder="Your full name">
      </div>

      <div class="form-group">
        <label for="email">Email</label>
        <input type="email" id="email" name="email" required aria-required="true" placeholder="you@example.com">
      </div>

      <div class="form-group">
        <label for="position">Position</label>
        <select id="position" name="position" required>
          <option value=""> Select a position </option>
          <option value="developer">Developer</option>
          <option value="designer">Designer</option>
        </select>
      </div>

      <fieldset class="form-group radio-group">
        <legend>Availability</legend>
        <div>
          <input type="radio" id="full-time" class='availability-radio-btn'  name="availability" value="full-time" required>
          <label for="full-time" class='availability'>Full-time</label>
        </div>
        <div>
          <input type="radio" id="part-time" class='availability-radio-btn' name="availability" value="part-time">
          <label for="part-time" class='availability'>Part-time</label>
        </div>
      </fieldset>

      <div class="form-group">
        <label for="message">Why do you want this job?</label>
        <textarea id="message" name="message" placeholder="Tell us about your motivation"></textarea>
      </div>

      <div class="form-group">
        <button type="submit">Submit</button>
      </div>
    </form>
  </div>
</body>
</html>

/* file: styles.css */
body {
  background-color:#231942;
  color:#e0b1cb;
}

.container {
  background-color:#5e548e;
  width: 80%;
  max-width:600px;
  border-radius:10px;
  margin:20px auto;
  padding:10px 20px;
  box-shadow: 0 5px 15px black;
}

h1 {
  text-align:center;
}

fieldset {
  border: 1px solid #9f86c0;
  border-radius: 5px;
  margin: 20px 0;
  padding: 20px;
}

label:not(.availability) {
  display:block;
}

input:not(.availability-radio-btn), textarea {
  width:95%;
  border-radius:5px
}

input:focus, textarea:focus {
  border: 2px solid yellow;
}

input:invalid, select:invalid, textarea:invalid {
  border: 2px solid red;
}

input:valid, select:valid, textarea:valid {
  border: 2px solid green;
}

button:hover {
  background-color: pink;
}

.radio-group input[type="radio"]:checked {
  background-color: yellow;
  box-shadow:0 5px 15px black;
}

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

}


input:first-of-type {
  border-radius: 12px;
}

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 OPR/128.0.0.0

Challenge Information:

Build a Job Application Form - Build a Job Application Form

You need to add the border attribute to the .radio-group input[type="radio"]:checked selector.

Yes, can you show me the exact result of this html + css output. Also, i have been trying.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.