Step 56 html building a cat photo app

Hello, am stuck on step 56

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

<input id="loving" type="checkbox"> Loving <label for="loving"> loving 

that is the code I have and I have tried multiple ones but failed to progress.

We’ll need to be able to see your HTML in order to help you.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

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 (').

It looks like your label element is nested inside of your input element? It’s hard to tell exactly what’s going on because we can only see a small portion of your code, but it looks like you have things out of order.

Sorry let me resubmit the code I wrote.

<input id="loving" type="checkbox"> Loving <label for="loving"> loving 
1 Like

“Associate the text Loving with the checkbox by nesting only the text Loving in a label element”

You didn’t nest the text Loving inside the label. To nest something means to put it inside of something. So you need to put the text Loving inside the label element.

Mod edit: removed code

@ASLAM2435 please do not try and give the code to solve the challenges. Even though the code you provided was not correct we want those who asked the question to come up with the code for themselves

Thanks

@Cody_Biggs i am not here to solve the challenges.i am trying step 56 but i didn’t find the answer i upload the code for can any one help me out.

Do not use a topic that is not your own for help with your code. If you have already created a topic for your problem then you need to wait for someone to reply

Thanks.