Tell us what’s happening:
Okay guys, for the life of me I cannot get Test (grading) part 18 to work. I have tried so many options I honestly am just lost at where I am with my code, what I have done, not done, or already tried numerous times. How do I get test 18 to work? What am I missing with my HTML or CSS?
Part 18 of the testing section***
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">Enter your full name:</label>
<input type="text" id="name" name="name">
<label for="email">Enter your email:</label>
<input type="email" id="email" name="email">
<label for="position">Select a Job Position:</label>
<select id="position" name="position">
<option value="cyber-analyst">Cyber Analyst</option>
<option value="hr">HR</option>
</select>
<fieldset class="radio-group">
<legend>Availability</legend>
<label for="full-time">
<input type="radio" name="availability" id="full-time" value="full-time"> Full-time
</label>
<label for="part-time">
<input type="radio" name="availability" id="part-time" value="part-time"> Part-time
</label>
</fieldset>
<label for="message">Enter your message:</label>
<textarea id="message" name="message"></textarea>
<!-- part 10 button -->
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
input:focus,
textarea:focus {
border-color: red;
}
input:invalid,
select:invalid,
textarea:invalid {
border-color: red;
}
input:valid,
select:valid,
textarea:valid {
border-color: green;
}
button:hover {
background-color: red;
}
.radio-group input[type="radio"]:checked {
border-color: green;
background-color: brown;
box-shadow: 10px 10px 10px black;
}
input:first-of-type {
border-radius: 8px;
}
// this is the area I am trying to finish part 18 of grading
.radio-group input[type="radio"]:checked {
color: yellow;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build a Job Application Form - Build a Job Application Form