Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

I keep getting failed on steps 9, 17 and 18. can anyone help me to understand what i am doing wrong?

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">
            <label for="name">Name (required)</label>
            <input type="email" id="email">
            <label for="emil">Email(required)</label>
            <label for="position">Position (required)</label>
            <select id="position" name="position">
                <option value="frontend">Front End Developer</option>
                <option value="backend">Back End  Developer</option>
                <option value="fullstack">Full Stack Developer</option>
                <option value="webtester">Web tester</option>
                <option value="analytics">Analytics</option>
            </select>
                 <label id="radio-group">Choose your desired work hours:</label>

  <fieldset class="radio-group">
    <legend>Availability</legend>

    <label for="full-time">Full-Time</label>
    <input type="radio" id="full-time" name="availability" value="full-time" required>


    <label for="part-time">Part-Time</label>
    <input type="radio" id="part-time" name="availability" value="part-time" required>

    <label for="overnight">Overnight</label>
    <input type="radio" id="overnight" name="availability" value="overnight" required>
  </fieldset>

</fieldset>
                <textarea id="message"></textarea>
            <button type="submit">Submit</button>
        </form>
    </div>

</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
  border-color: purple;
  outline: none; 
}
input:invalid,
select:invalid,
textarea:invalid {
  border-color: red;
}
input:valid,
select:valid,
textarea:valid {
  border-color: green; 
}
button:hover {
  background-color: crimson;
}
.radio-group input[type="radio"]:checked {
  border: 2px solid purple;
  background-color: green;
  box-shadow: 0 0 5x gray;
}

.radio-group label {
  border: 2px solid gray;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s, border-color 0.3s;
}
input:first-of-type {
  border: 2px solid orange; 
  padding: 10px;             
}

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 Edg/137.0.0.0

Challenge Information:

Build a Job Application Form - Build a Job Application Form

What are tests 9, 17, and 18?

Which code have you written to satisfy these tests specifically?

Where did you get stuck debugging theses three tests?

Failed:9. You should associate every input element with a label element. Failed:17. 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:18. You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected.

Please answer all 3 of my questions.

 <fieldset class="radio-group">
    <legend>Availability</legend>

    <label for="full-time">Full-Time</label>
    <input type="radio" id="full-time" name="availability" value="full-time" required>


    <label for="part-time">Part-Time</label>
    <input type="radio" id="part-time" name="availability" value="part-time" required>

    <label for="overnight">Overnight</label>
    <input type="radio" id="overnight" name="availability" value="overnight" required>
  </fieldset>
.radio-group input[type="radio"]:checked {
  border: 2px solid purple;
  background-color: green;
  box-shadow: 0 0 5x gray;
}

I don’t exactly know where I am stuck debugging them hence why I am here. I have written and reweitten the code multiple times. rerea the instructions multiple times. done multiple google searches and debugs to determine where i am messing up. I have written the code separate from the others multiple times in css to ensure that isn’t the issue. I have looked at hints here on freecodecamp as well. I am stuck on something small but cannot for the life of me figure out what it is.

Please don’t un-fix your code formatting after I fix it.

  1. That does not look like all of your input/label pairs?

You have some more input/label pairs, right?

Looks like a typo here

  1. I do not see any code for test 18?

I did not mean to mess up the formatting you corrected. and yes, I did forget the inputs for email and such when I went back I recognized a typo (I have slight dyslexia) so typos are frequent for me. 9 and 17 passed and your right i forgot to even add the 18th step thank you for your help

1 Like