Tell us what’s happening:
Step 9 error “you should associate a label with every input element”.
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>
<h1>Job Application</h1>
<div class="container">
<form>
<fieldset>
<label for="name">Full Name:</label>
<input type="text" class="name" id="name">
<label for="email">Email:</label>
<input type="email" class="email" id="email">
<label for="position">Select the position you are applying for:</label>
<select id="position">
<option value="IT">IT</option>
<option value="web-dev">Web Development</option>
<option value="programmer">Programmer</option>
</select>
</fieldset>
<section class="radio-group" name="availability">
<input type="radio" name="availability" class="full-time">
<label for="full-time">Full-Time</label>
<input type="radio" name="availability" class="part-time">
<label for="part-time">Part-Time</label>
<label for="message">Any other important information you'd like to share?</label>
<textarea id="message" class="message"></textarea>
</section>
<button type="submit">Submit Application</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
border-color: pink;
outline: none;
}
input:invalid, select:invalid, textarea:invalid{
border-color:red;
outline:none;
}
input:valid, select:valid, textarea:valid{
border-color:green;
outline:none;
}
button:hover{
background-color:teal;
color:white;
}
.radio-group input[type="radio"]:checked{
border-color:darkgreen;
outline:none;
background-color:yellow;
box-shadow: 5px gray;
}
input[type="radio"]:checked + label {
color: orangered;
background-color:beige;
}
input:first-of-type{
border-radius:5px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Challenge Information:
Build a Job Application Form - Build a Job Application Form