Build a Survey Form

My code keeps failing for these requirements please help

*/ <label for="number" id="number" name="number-label"> What is your age?
    <input id="number" min=18 max=50 type="number">
    </label>*/

You should have a label element with an id of number-label .
Your #number-label should contain text that describes the input.
Your #number-label should be a descendant of #survey-form .

You don’t have a label element with an id attribute of number-label, so all of those tests can’t pass.

Hi @Oizzat

Photos/screenshots of an error can be helpful, but it also helps to provide the complete code. Posting the code helps us help you better!

When you enter a code, 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 (').

Happy coding

Please use back ticks.
Here is a single back tick `

Your issue is that you’re missing a quote mark in the placeholder attribute of your input element here:

MOD edit - replaced placeholder attribute value

1 Like

You are also missing quote marks for other attributes.

If you are using your real email address, please delete them from this topic, as these posts are publicly accessible.

1 Like

It works now thank you very much

1 Like

Works now thank you! I will delete the email

1 Like

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