Tell us what’s happening:
At the moment, I am attempting to prove my ability to pass each of these required elements as a basic challenge, but I am having an issue with passing step 11. All other parts are fine.
“You should use the selector for the :focuspseudo-class for input and textarea to also remove the default outline when focused.”
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheets" href="styles.css">
<title>Job Application Form</title>
</head>
<body>
<div class="container">
<form>
<h1>Job Application Form</h1>
<label for="name">Full Name: </label>
<input
type="text"
id="name"
/>
<label for="email">Email: </label>
<input
type="email"
id="email"
/>
<label for="position">Position: </label>
<select
id="position">
<option>Select a position</option>
<option>Developer</option>
<option>Designer</option>
<option>Manager</option>
</select>
<fieldset class="radio-group">
<legend>Availability:</legend>
<input
type="radio"
id="full-time"
name="availability"
/>
<label for="full-time">Full-Time</label>
<input
type="radio"
id="part-time"
name="availability"
/>
<label for="part-time">Part-Time</label>
</fieldset>
<label for="message">Why do you want this job?</label>
<textarea
id="message"
rows=4;
cols=50;
>
</textarea>
<button type="submit">Submit Application</button>
</form>
</div>
</body>
</html>
input:focus, textarea:focus {
border-color: pink;
outline: none;
}
input:invalid, select:invalid, textarea:invalid {
border-color: red;
}
input:valid, select:valid, textarea:valid {
border-color: green;
}
button:hover {
background-color: black;
border-radius: 10px;
}
.radio-group input[type="radio"]:checked {
border-color: black;
background-color: gray;
box-shadow: 5px 10px;
}
.radio-group input[type="radio"]:checked + label {
color: yellow;
}
input:first-of-type {
border-radius: 16px;
}