Tell us what’s happening:
i cant do number 14, i cant write a background-color or border in my radio input and i think im not suposed to,
im very confused
sorry for my english
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Application Form</title>
</head>
<body>
<div class="container">
<form>
<input type="text" id="name">
<input type="email" id="email">
<select id="position">
<option>teste1</option>
<option>teste2</option>
<option>teste3</option>
</select>
<fieldset class="radio-group">
<label for="radio1">teste<input type="radio" id="radio1" name="availability">
<label for="radio2" >teste2<input type="radio" id="radio2" name="availability">
</fieldset>
<textarea id="message"></textarea>
<button type="submit">submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
input:valid,select:valid,textarea:valid{
border:2px solid green
}
input:invalid,select:invalid,textarea:invalid{
border:2px solid red
}
input:focus,textarea:focus{border:2px solid yellow ;outline:none}
button:hover{background-color:orange}
.radio-group input[type="radio"]:checked {
box-shadow: 0 0 5px 3px blue;
outline: 1px solid red;
accent-color:red;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Challenge Information:
Build a Job Application Form - Build a Job Application Form
Hi.
Read the instructions again, you’re missing some properties that are required.
to add a border color, background color and a box shadow
i used border color and background-color on this selector:
.radio-group input[type=“radio”]:checked
but it didnt work only box-shadow worked
You used the wrong properties then. Here are some references to aid:
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
look,dosent work
input:valid,select:valid,textarea:valid{
border:2px solid green
}
input:invalid,select:invalid,textarea:invalid{
border:2px solid red
}
input:focus,textarea:focus{border:2px solid yellow ;outline:none}
button:hover{background-color:orange}
.radio-group input[type="radio"]:checked {
box-shadow: 0 0 5px 3px blue;
background-color: red;
border-color:green;
}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Application Form</title>
</head>
<body>
<div class="container">
<form>
<input type="text" id="name">
<input type="email" id="email">
<select id="position">
<option>teste1</option>
<option>teste2</option>
<option>teste3</option>
</select>
<fieldset class="radio-group">
<label for="radio1">teste<input type="radio" id="radio1" name="availability">
<label for="radio2" >teste2<input type="radio" id="radio2" name="availability">
</fieldset>
<textarea id="message"></textarea>
<button type="submit">submit</button>
</form>
</div>
</body>
</html>
ILM
April 24, 2025, 9:41am
7
please post your updated code
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
i’ve edited the messege before to include my code
im still stuck at the course because of this
i have ve used that ones but still nothing im stuck in the course for days
Let me see your adjusted code.
what do you mean by adjusted? ive sended the code before updated
Hi,
You’re stuck at steps 15 and 16. Have you done anything about those?
Step 15 for example wants you to change the color of the label elements when the radio buttons associated with those labels are selected.
Im stuck até 14 the background-color nor borderô color apply
ILM
April 26, 2025, 6:22pm
16
what is your latest code?
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
henriquemfnobrega:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Application Form</title>
</head>
<body>
<div class="container">
<form>
<input type="text" id="name">
<input type="email" id="email">
<select id="position">
<option>teste1</option>
<option>teste2</option>
<option>teste3</option>
</select>
<fieldset class="radio-group">
<label for="radio1">teste<input type="radio" id="radio1" name="availability">
<label for="radio2" >teste2<input type="radio" id="radio2" name="availability">
</fieldset>
<textarea id="message"></textarea>
<button type="submit">submit</button>
</form>
</div>
</body>
</html>
input:valid,select:valid,textarea:valid{
border:2px solid green
}
input:invalid,select:invalid,textarea:invalid{
border:2px solid red
}
input:focus,textarea:focus{border:2px solid yellow ;outline:none}
button:hover{background-color:orange}
.radio-group input[type="radio"]:checked {
box-shadow: 0 0 5px 3px blue;
background-color: red;
border-color:green;
}```
ive noticed now 14 shows as correct but
the button is still blue why? if i used this proprieties:
background-color:red;
border-color:green;
Hi again,
Radio buttons work that way. Changing the background-color and border properties won’t change anything in most browsers. But it can be changed if you do a little more editing of the radio buttons in css. Right now, it’s not an error on your part.
1 Like
ILM
April 27, 2025, 9:19am
20
you do not have a selector for the label
elements