Learn Form Validation by Building a Calorie Counter - Step 47

Tell us what’s happening:

Sorry, your code does not pass. Try again.

You should have a label element inside your template literal.
shows me this i tried a lot of variations but cant seem to find the problem.

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/131.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 47

  • missing a “for” attribute within “label”
1 Like

[spoiler]this was in the end? i put the same code but only this :

<label>Entry ${entryNumber} Name</label>

and it worked. also how to blur my message since its the answer.
Thank you.[/spoiler]

use This text will be blurred

try enveloping your answer within two “||” or try using spoiler from settings

happy coding :slight_smile:

1 Like

thank you, it worked!

1 Like