Build an Envelope Budget App - Step 46

Tell us what’s happening:

I keep getting the message: “You should have a label element inside your template literal.” What am I doing wrong?

Your code so far

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

/* file: styles.css */

/* file: script.js */
// User Editable Region
  const HTMLString = `<label for="${category}-${entryNumber}-name">Expense ${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/151.0.0.0 Safari/537.36 Edg/151.0.0.0

Challenge Information:

Build an Envelope Budget App - Step 46

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-envelope-budget-app/69b2c970cb02ddaafff1c10b.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @admagee63,

Were you asked to add a for attribute in this step?

Happy coding

I have tried the above AND const html = ` Expense ${entryNumber} Name `;

Nothing seems to work the way the system wants.

Well, now you’ve changed the variable name in the starting code.

I suggest you reset this step and try again, being careful to only do what the instructions ask.

If you then need more help, please post your updated code.