Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Please suggest solutions for no.15? I tried different approaches.

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>
        Name:<input type="text" id="name"></input>
<br>
        Email:<input type="email" id="email"></input>
<br>
<br>
<fieldset>
    <legend>Postition</legend>
        <select id="position">
            <option value="software-engineer">Software Engineer</option>
            <option value="developer">Developer</option>
            <option value="manager">Manager</option>
        </select>
</fieldset>
<br>

    <fieldset class="radio-group">
        <legend>Availability</legend>
            <input type="radio" name="availability" value="part-time">Part-Time</input>
            <input type="radio" name="availability" value="full-time">Full-Time</input>
<br>
</fieldset>

<br>

<fieldset>
<legend>Message</legend>
        <textarea id="message">
        </textarea>
</fieldset>

<button type="submit">Submit</button>
    </form>
</body>
</html>
/* file: styles.css */
input:focus, textarea:focus{
  border-color: yellow;
}
input:invalid, select:invalid, textarea:invalid {
border-color: red;
}
input:valid, select:valid, textarea:valid {
border-color: green;
}
button:hover{
  background-color: rgb(222, 117, 222);
}
.radio-group input[type="radio"]:checked
 {
  border-color: pink; 
  background-color: blue;
  box-shadow: 0 1px lightblue;
 }

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


input:nth-child(1) {
  background-color: #f0f0f0; 
  border: 2px solid #333;    /* Dark border for the first input */
}

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form

Hi there. input element didn’t need a closing tag. Also you aren’t have label element for both radio button. check your other input elements as well.