Learn Form Validation by Building a Calorie Counter - Step 47

Tell us what’s happening:

it keeps saying that my label element should be in a literal but i have no idea how to fix that

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

    const HTMLString = <label>`Entry${entryNumber}Name`</label>;

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 OPR/118.0.0.0

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 47

if I tell you that it needs to go inside the string does it change something for you?

i tried that it does not change anything

const HTMLString = <label>Entry ${entryNumber} Name</label>;
this is what ive done and it still isnt working
i have put the literals before and after the label element

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

 const HTMLString =`<label>Entry ${entryNumber} Name</label>`;

you have removed the going to a new line

reset the step, add the label without deleting anything

did that now its not showing any hints or solutions

did you add again the HTMLString declaration? that’s already there on the line above

you need to add only the label in this step

yes i checked that and i had added one more before it but i deleted it right now and its still now working

reset the step and add only the label

tried that too

and now what does it say?

nothing no solutions or anything

Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

worked thank you for your help and quick responses