Tell us what’s happening:
I am not sure how to do the No.18, could yo help? Thanks.
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">
<link rel:"stylesheet" href="styles.css">
<title>Job Application Form</title>
</head>
<body>
<div class="container">
<form>
<label for="name">Full Name:</label>
<input type="text" id="name" placeholder="Enter your name" required/>
<br>
<label for="email">Email:</label>
<input type="email" id="email" placeholder="Enter your email" required/>
<br>
<label for="position">Position:</label>
<select id="position" required>
<option value="" disabled selected>Select a position</option>
<option value="1">Developer</option>
<option value="2">Designer</option>
<option value="3">Manager</option>
</select>
<br><br>
<fieldset class="radio-group">
<legend>Availability</legend>
<input type="radio" id="fulltime" name="availability" value="fulltime"/ checked>
<label for="fulltime">Full Time</label>
<input type="radio" id="parttime" name="availability" value="parttime"/>
<label for="parttime">Part Time</label>
</fieldset>
<br>
<label for="message">Why do you want this job?</label>
<textarea id="message" name="motivation" required placeholder="Write your motivation">
</textarea>
<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: rgb(139, 139, 243);
}
.radio-group input[type="radio"]:checked {
border-color:green;
background-color: green;
box-shadow: 5px 5px 10px green;
}
.radio-group input[name="availability"] + label:checked{
color: green;
}
input:first-of-type {
color: cadetblue;
}
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 Edg/142.0.0.0
Challenge Information:
Build a Job Application Form - Build a Job Application Form