Build a Job Application Form

Tell us what’s happening:

At the moment, I am attempting to prove my ability to pass each of these required elements as a basic challenge, but I am having an issue with passing step 11. All other parts are fine.

“You should use the selector for the :focuspseudo-class for input and textarea to also remove the default outline when focused.”

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheets" href="styles.css">
    <title>Job Application Form</title>
</head>
<body>
    <div class="container">
        <form>
            <h1>Job Application Form</h1>
            <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>Select a position</option>
                <option>Developer</option>
                <option>Designer</option>
                <option>Manager</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">Why do you want this job?</label>
            <textarea
                id="message"
                rows=4;
                cols=50;
            >
            </textarea>
            <button type="submit">Submit Application</button>
        </form>
    </div>
</body>
</html>
input:focus, textarea:focus {
  border-color: pink;
  outline: none;
}

input:invalid, select:invalid, textarea:invalid {
  border-color: red;
}

input:valid, select:valid, textarea:valid {
  border-color: green;
}

button:hover {
  background-color: black;
  border-radius: 10px;
}

.radio-group input[type="radio"]:checked {
  border-color: black;
  background-color: gray;
  box-shadow: 5px 10px;
}

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

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

Lesson URL https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-job-application-form/lab-job-application-form

Welcome to the forum @joz_hill17,

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

Happy coding

We have blurred this solution (with [spoiler][/spoiler] tags) so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.

Oh, thank you so much! I was doing it on my iPad using the official app, a web app and Safari, and neither of them worked. I can now use the code I’ve written for further development. Again, thank you!