Tell us what’s happening:
Hey, I passed 15/17 tests and tried to solved the last two, but I feel stuck.
Could someone help and explain me where my error in my code is?
Your code so far
https://codepen.io/kerstin-daut/pen/QWEdBpR
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
.
Challenge: Build a Survey Form
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
In codepen you can use analyze html
option, it’s going to highlight some errors that you should correct
Make sure you use double quotes for attributes and that you close all the tags.
Also, one thing that I just noticed. You’re using input
tag incorrectly:
<input> ... </input>
input
is self closing tag, so there you cannot you use it like this.
My guess is that you want to have a label, so you can for example do following:
<label for="nintendo">Nintendo</label>
<input id="nintendo" value="nintendo" name="company" type="radio" />
label’s for
is used to associate it with the input’s id
mdn input:radio
as stated by @sitek94 , you’ve lots of mistake there…
Analyze html
option is in the small triangle in html editor…
Alternatively you can copy paste your html in html Validator …
1 Like
thank you! I will check it out and removed the closing input tag.
I found the error, had to delete some div closing tags and now passed all tests.
1 Like