Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Please help! I’m stuck at Question 15. I’ve done everything I could, but it won’t pass.

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">
    <link rel="stylesheet" href="styles.css">
    <title>Job Application Form</title>
</head>
<body>
  <div class="container">
    <form>
      <input type="text" id="name">
      <label for="name">Name</label>
      <input type="email" id="email">
      <label for="email">Email</label>
      <label for="position">Location</label>
      <select id="position">
        <option>Benin</option>
        <option>Lagos</option>
        <option>Abuja</option>
      </select>
      <fieldset class="radio-group">
        <legend>Availability</legend>
        <input type="radio" id="full" name="availability">
        <label for="part">Part time</label>
        <input type="radio" id="part" name="availability">
        <label for="full">Full time</label> 
      </fieldset>
      <textarea id="message" placeholder="enter text here..."></textarea> 
      <br>
      <button type="submit">Submit</button>
    </form>  
  </div>

</body>
</html>

/* file: styles.css */
input:focus, textarea:focus{
  border-color: blue;
}
input:invalid, select:invalid, textarea:invalid{
  border-color: red;
}
input:valid, select:valid, textarea:valid{
  border-color: green;
}
button:hover{
  background-color: orangered;
}
.radio-group input[type="radio"]:checked{
border-color: gray;
background-color: pink;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
input[type="radio"]:checked + label{
color: blue;
}
input:nth-child(1){
  border-color: black;
  border-radius: 10px;
}
label{
  color: brown;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Build a Job Application Form - Build a Job Application Form

Welcome to the forum @sammyasabs

Try matching the id and for attribute values.

Happy coding

Thanks a lot. It worked!

1 Like