# Build a Job Application Form - Build a Job Application Form

**URL:** <https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468>\
**Category:** Curriculum Help\
**Tags:** html-css\
**Created:** [October 19, 2026, 11:22pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468 "2026-10-19T23:22:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![programlegion](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/programlegion/32/379387_2.png) [@programlegion](https://forum.freecodecamp.org/u/programlegion)\
**Post date:** [October 19, 2026, 11:22pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/1 "2026-10-19T23:22:55Z")

</div>

### Tell us what’s happening:

I couldn’t get the focus state to work, until I realized: it will always take the latest rule, so the order in the instructions is off. Which may be ok, as this gives us a moment to tinker… but in the example, the proper order isn’t honoured either:  
Because the validation rules come after :focus (or share specificity without proper sequencing), clicking into a field immediately triggers the validation border instead of showing the yellow focus ring inside the example, maybe worth an update?

### Your code so far

```html
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>Job Application Form</title>
</head>
<body>
    <div class="container">
        <form>
            <label for="name">Full Name</label>
            <Input type="text" id="name">
            <label for="email">Email Address</label>
            <input type="email" id="email">

            <label for="position">Job Position</label>
            <select id="position">
                <option value="">Select a position</option> 
                <option value="chair-warmer">Chair Warmer</option>
                <option value="sessel-pupser">Sessel Pupser</option>
            </select>

            <fieldset class="radio-group">
                <legend>Availability</legend>
                    <input type="radio" name="availability" value="full-time"
                    id="full-time"> 
                    <label for="full-time">Full-Time</label>
                    <input type="radio" name="availability" value="part-time"
                    id="part-time">
                <label for="part-time">Part-Time</label>
            </fieldset>
            <label for="message">Tell us:</label>
                <textarea id="message" rows="4" placeholder="What makes you an asset to this chair?">    
                </textarea>
            <button type="submit">Submit</button>
        </form>
    </div>
</body>
</html>

```

```css
/* file: styles.css */
body {
  background-color: rgb(216, 247, 216);
  align-content: flex;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input:invalid, select:invalid, textarea:invalid {
  border: 2px solid red;
}
input:valid, select:valid, textarea:valid {
  border: 2px solid green;
}
input:focus, textarea:focus {
  outline: none;
  border: 2px solid yellow;
}
button {
  width: 60px;
  align-self: center;
}
button:hover {
background-color: darkgrey;
color: whitesmoke;
}
.radio-group input[type="radio"]:checked {
  appearance: none;
  border-color: darkgreen;
  background-color: lightgreen;
  box-shadow: 0 0 3px darkgreen;
  width: 12px;
  height: 12px;
  border-radius: 50%;

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

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Gecko/20100101 Firefox/156.0`

### Challenge Information:

Build a Job Application Form - Build a Job Application Form

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-job-application-form/lab-job-application-form)**
>
> Learn to Code for Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/lab-job-application-form/66faac4139dbbd5dd632c860.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/lab-job-application-form/66faac4139dbbd5dd632c860.md)

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [October 20, 2026, 1:19pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/2 "2026-10-20T13:19:52Z")

</div>

Hi @programlegion,

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

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [October 20, 2026, 1:20pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/3 "2026-10-20T13:20:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![programlegion](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/programlegion/32/379387_2.png) [@programlegion](https://forum.freecodecamp.org/u/programlegion)\
**Post date:** [October 20, 2026, 2:44pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/4 "2026-10-20T14:44:28Z")

</div>

Thanks for those steps, but it’s definitely not a browser or cache issue on my end—it’s a CSS cascade conflict in the reference example itself.

If you open up the reference example project and click into any input field, you’ll notice right away that there is no yellow focus ring shown. Because the validation rules (`:invalid`/`:valid`) are written after the `:focus` rule—following the exact order listed in the assignment instructions—the validation styles completely override the focus state. If you follow the instructions in that exact sequence, it’s actually impossible to ever see the yellow focus outline, as it always gets overridden by either red or green!

Whoever built the reference example likely followed the prompt’s order step-by-step without realizing the cascade order would break the `:focus` state.

Where is the best place or channel to submit an issue for curriculum/reference project bugs like this?

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [October 20, 2026, 2:56pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/5 "2026-10-20T14:56:46Z")

</div>

Thank you for helping make FCC better. Bugs can be reported as [GitHub Issues](https://github.com/freeCodeCamp/freeCodeCamp/issues). Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [October 20, 2026, 5:58pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/6 "2026-10-20T17:58:55Z")

</div>

created an issue here

> <https://github.com/freeCodeCamp/freeCodeCamp/issues/71140>
>
> \### Describe the Issue
> 
> The Build a Job Application Form lab's reference solutio…n does not show the intended focus border on its text inputs and textarea.
> 
> The lab requires:
> 
> \> Add a \`:focus\` pseudo-class to the \`input\` and \`textarea\` elements to change their border color and remove the default outline when focused.
> 
> However, the solution places its \`:focus\` rule before the \`:invalid\` and \`:valid\` rules. These selectors have equal specificity, so the later validation rules override the blue focus border. Because the focus rule also sets \`outline: none\`, the default focus indicator is removed.
> 
> In the reference solution:
> 
> \- Focusing an empty required text field leaves its border red.
> \- Entering valid text leaves its focused border green.
> \- In both cases, \`outline: none\` removes the default focus indicator.
> \- Placing the focus rule after the validation rules restores the blue focus border on the text input and textarea.
> 
> The user stories also introduce focus before invalid and valid states. Although they do not mandate CSS source order, following their sequence produces the same conflict. The focus tests inspect the declared properties without checking whether the border actually changes when a field receives focus.
> 
> Reported on the forum:
> https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468
> 
> \### Affected Pages
> 
> https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-job-application-form/lab-job-application-form
> 
> \### Expected behavior
> 
> The reference solution should display its focus border on text inputs and the textarea regardless of whether their current values are valid or invalid. Validation colors should remain visible when those fields are not focused.
> 
> The user stories should present the invalid and valid states before the focus state, matching the CSS order that lets the focus border take precedence. The corresponding hints and tests should follow that order.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [October 22, 2026, 5:59pm UTC](https://forum.freecodecamp.org/t/build-a-job-application-form-build-a-job-application-form/802468/7 "2026-10-22T17:59:38Z")

</div>

Closed on October 22, 2026, 5:59pm UTC

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