Missing checked attribute from first input - Step 61

Project 61 - Could someone please help me understand what is the error on my code? I tried different ways to add the checked attribute but I still get the error.

Step 61:
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.

My Code:

Is your cat an indoor or outdoor cat? Indoor Outdoor

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

input type checkbox checked

some docs…

Thank you for your response.
It still not working…

you did it for the input type radio ,now do it for the first input type checkbox

Thanks a lot. It worked. I didn’t understand that I had to add the “checked attribute” again.

1 Like

Здравствуйте! У меня такая же проблема. Я не могу понять куда еще писать “checked”. Помогите пожалуйста…

Ласкаво просимо на форум @gulzina.saidamatkyzy

Будь ласка, створіть власну тему, щоб форум міг допомогти.

Опублікуйте свій повний код.

Використовуйте наступний метод, щоб опублікувати код на форумі:

  1. В окремому рядку наберіть три зворотні галочки.
  2. В окремому рядку вставте свій код.
  3. В останньому рядку введіть три зворотні галочки. Ось одна галочка назад `

Опишіть проблему, з якою ви зіткнулися

Щасливого кодування

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.