Tell us what’s happening:
Your code so far
Top 3 things cats hate:
flea treatment
thunder
other cats
loving
standoffish
fun
Indoor
Outdoor
Submit
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes
Daring
September 14, 2018, 1:20pm
2
Hello, tell me what is happening to your code.
Hey @mattbreen92 ,
Use the “preformattted text” button in your reply window to post the code.
t is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes
Task: Add to your form a set of three checkboxes. Each checkbox should be nested within its own label element. All three should share the name attribute of personality.
mattbreen92:
Tell us what’s happening:
Your code so far ``
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label for="loving"><input id="loving" type"checkbox" name="personality">loving</label>
<label for="standoffish"><input id="standoffish" type"checkbox" name="personality">standoffish</label>
<label for="fun"><input id="fun" type"checkbox" name="personality">fun</label>
<p> </p>
<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
<label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes
Blockquote
Hey @mattbreen92 ,
If you look closely, you do not have “=” sign after type an before “checkbox”.
Does that help?
1 Like
Hi Aditya,
That was perfect.
Thanks for your help!
Matt
Hey Matt,
You are always welcome.
All the best for future challenges.
1 Like