Tell us what’s happening:
I cannot get step 12 to work on my code. Step 11 is working just fine, which means that it recognizes my :focus pseudo class… so, I dont understand what the problem is with Step 12
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>
<div class="container">
<form>
<label for="name" id="name-label">Full Name:</label>
<input
type="text"
id="name"
name="name"
placeholder="Enter your full name"
required
>
<label for="email" id="email-label">Email Address:</label>
<input
type="email"
id="email"
name="email"
placeholder="Enter your email address"
required
>
<label for="position">Choose a position:</label>
<select id="position" name="position" required>
<option value="">Select a position</option>
<option value="developer">Developer</option>
<option value="designer">Designer</option>
<option value="manager">Manager</option>
</select>
<fieldset class="radio-group">
<legend>Availability</legend>
<input
type="radio"
id="full-time"
name="availability"
value="full-time"
>
<label for="full-time">Full-Time</label>
<input
type="radio"
id="part-time"
name="availability"
value="part-time"
>
<label for="part-time">Part-Time</label>
</fieldset>
<label for="message">Message:</label>
<textarea
id="message"
name="message"
placeholder="Enter your message"
></textarea>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
border-color: blue;
outline: none;
}
input:invalid,
select:invalid,
textarea:invalid {
border-color: red;
}
input:valid,
select:valid,
textarea:valid {
border-color: green;
}
button:hover {
background-color: lightblue;
}
.radio-group input[type="radio"]:checked {
border-color: blue;
background-color: lightblue;
box-shadow: 0 0 5px blue;
}
.radio-group input[type="radio"]:checked + label {
color: blue;
}
input:first-of-type {
border-radius: 10px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15
Challenge Information:
Build a Job Application Form - Build a Job Application Form