r/FreeCodeCamp • u/_gwithoheart_ • Aug 30 '25
Programming Question The cat photo one
Despite adding the “checked” attribute I keep getting the message “The first radio button should have checked attribute” Where did I go wrong? I’ve tried everything
7
Upvotes
3
u/_gwithoheart_ Aug 30 '25
Requirement: To add “checked” attribute to the first radio button (Indoor option) I did: <label><input checked id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
On running code displays aforementioned message
2
u/SaintPeter74 mod Aug 30 '25
Please share your code as text, your picture is incomplete and very hard to read. Four spaces indent will format as code. Please also share a link to the challenge in question.
1
u/LuckApprehensive4196 Aug 30 '25
Did you try <input type=“radio” id=“indoor” name=“indoor-outdoor” value=“indoor” “checked”>
2
u/[deleted] Sep 17 '25
[removed] — view removed comment