Step 61: CatPhotoApp

The question is: In order to make a checkbox checked or radio button selected by default, you need to add the checked attribute to it. There’s no need to set a value to the checked attribute. Instead, just add the word checked to the input element, making sure there is space between it and other attributes.

Make the first radio button and the first checkbox selected by default.

This is what I did:
<input id="loving" type="checkbox" name="personality" value="loving" checked> <label for="loving">Loving</label>

According to the system, something is wrong, and it is giving me a hint as:
The first radio button is missing the checked attribute.

I’ve edited your code for readability. 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 (').

hello and welcome to fcc forum :slight_smile:

here it mentions “two elements - checkbox and radio button” but you shared snippet for “checkbox” only

you might want to look into that, also always share “step url” along with your question or queries, it’s much more helpful for others to offer help, happy learning :slight_smile:

Hi, it is step #61 for CatPhotoApp

i meant url of this “step” :slight_smile:

did you solve this as of yet?