Tell us what’s happening:
You should use the :checked pseudo-class on .radio-group input[type=“radio”] to add a border color when the radio button is selected.
Someone help me spot /interpret my wrong moves please?
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><input type="text" id="name" name="fullname">Full-Name</label>
<label><input type="email" id="email"></label>
<label><select id="position"><option>Hr.manager</option></select></label>
<fieldset class="radio-group"><label for="radio-button"><input type="radio" id="radio-button" name="availability">Full-Time</label>
<label for="radio-button"><input type="radio" id="radio-button"name="availability">Part-Time</label>
<label><textarea id="message"></textarea></label>
<button type="submit">submit</button>
</fieldset>
</form>
</div>
</body>
</html>
/* file: styles.css */
body{background-color:rgb(243, 194, 243);
text-align:center;
margin:25px;
}
fieldset{
margin:25px;
padding:25px;
}
input:focus, textarea:focus {
border-color:brown;
outline:none;
}
input:invalid, select:invalid, textarea:invalid{
border-color:red;
}
input:valid, select:valid, textarea:valid{ border-color:green;}
button:hover{background-color:green;}
input[type="radio"] :checked {border: red;
}
radio:checked{color:yellow;}
input:first-of-type{color :yellow;}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Challenge Information:
Build a Job Application Form - Build a Job Application Form