Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

I am unable to solve steps 14-17. I need help on the issue.

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>
    <label for="name">Full-Name:</label>
    <br>
    <input type="text" id="name">
<br>
<label for="email">Email:</label>
    <br>
    <input type="email" id="email">
    <br>
<label>Position:</label>
<br>
<select id="position">
    <option>Choose here</option>
    <option>PG</option>
    <option>SG</option>
    <option>CG</option>
</select>
<br>
<fieldset  class="radio-group">
    <legend>Availablity</legend>
<input type="radio" id="fulltime" name="availability">
            <label for="fulltime">Full Time</label>

<input type="radio" id="parttime" name="availability">
            <label for="parttime">Part Time</label>

 </fieldset>
<label>Why do you want this job?</label>
<br>
<textarea placeholder="Hi" id="message"></textarea><br>
<button type="submit" vaue="submit">Submit</submit>


    </form>

    </div>
</body>
</html>
/* file: styles.css */
body {
  border: 3px solid pink;
  padding: 5px;
  border-radius: 5px;
}
input:focus, textarea:focus {
  border-color: midnightblue;
}
input:invalid, select:invalid, textarea:invalid {
  border-color: red
}
input:valid, select:valid, textarea:valid {
  border-color: green
}
button:hover {
  background-color: blue;
  color: white;
  border-radius: 5px;
  font-size: 20px;
}
.radio-group input[type="radio"]:checked label {
border-color: red;
background-color: blue;
box-shadow: 10px;
}

input[type="radio"]:checked + label {
  color: black;
  }

input:nth-child(1) {
    border-radius: 8px;
}

.radio-group label {
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
  

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

what are those asking you to do? what part of your code do you think satisfies that?

1 Like

Can you say what are tests 14-17?

What have you tried to debug why those tests fail?

Which lines of code do you think are satisfying those requirements for those tests?

It is mainly for step 17.

  1. You should use the :checked pseudo-class on radio buttons to change the text color of the associated label` when the option is selected.

Ok, but what part of your code do you think meets that requirement?

I tried using with and without the + and its still incorrect

Is setting the color to black changing the color from what its default color is?