# Code error in CatPhoto project

**URL:** <https://forum.freecodecamp.org/t/code-error-in-catphoto-project/609231>\
**Category:** General\
**Created:** [May 10, 2023, 4:46am UTC](https://forum.freecodecamp.org/t/code-error-in-catphoto-project/609231 "2023-05-10T04:46:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairajup](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sairajup](https://forum.freecodecamp.org/u/sairajup)\
**Post date:** [May 10, 2023, 4:46am UTC](https://forum.freecodecamp.org/t/code-error-in-catphoto-project/609231/1 "2023-05-10T04:46:13Z")

</div>

I got struck in this error

# Step 56

There’s another way to associate an `input` element’s text with the element itself. You can nest the text within a `label` element and add a `for` attribute with the same value as the `input` element’s `id` attribute.

Associate the text `Loving` with the checkbox by nesting only the text `Loving` in a `label` element and giving it an appropriate `for` attribute.

I wrote  
  
Loving

I am not sure what went wrong but this is showing error

---

<div class="post-metadata">

**Author:** ![Cody\_Biggs](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cody_biggs/32/358652_2.png) [@Cody\_Biggs](https://forum.freecodecamp.org/u/Cody_Biggs)\
**Post date:** [May 10, 2023, 5:04am UTC](https://forum.freecodecamp.org/t/code-error-in-catphoto-project/609231/2 "2023-05-10T05:04:11Z")

</div>

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the **Ask for Help** button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The **Ask for Help** button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [November 8, 2023, 5:04pm UTC](https://forum.freecodecamp.org/t/code-error-in-catphoto-project/609231/3 "2023-11-08T17:04:13Z")

</div>

Closed on November 8, 2023, 5:04pm UTC

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