Survey Form- building a survey form

Tell us what’s happening:
Failed: Your #name-label should contain text that describes the input.
Failed: Your #email-label should contain text that describes the input.
Failed: Your #number-label should contain text that describes the input.
Failed: Your #number should have a placeholder attribute and value.

Your code so far

<h1 id="title">Fitness Journey Survey Form</h1>

<link rel="stylesheet" href="styles.css">

<p id="description">To start your fitness journey, it is necessary for you to set your goals. Setting goals will help you to stay on track and measure your progress toward success. This survey will allow us to collect information about your current situation and see how we can help.</p>

<form id="survey-form">

<div><label id="name-label"></label> Name:

<input type="text" id="name" required

placeholder="Enter your name"></div><br><!--make sure name is typed-->

<!--EMAIL-LABEL-->

<div><label for="email" id="email-label"></label>Email:

<input type="email" id="email" required placeholder="Enter your email"></div><br>

<div><label for="number" id="number-label"></label> How many hours do you sleep in a day?

<input type="number" id="number"

min="0" max="24" required placeholer="8" value="number"></div><br><!--pick a number to log in the system-->

</input></input></input>

<div>How often do you read nutrition labels? <select name="nutrition-labels" id="dropdown">

<option value="select-one">Select One</option>

<option value="always">Always</option>

<option value="often">Often</option>

<option value="sometimes">Sometimes</option>

<option value="rarely">Rarely</option>

<option value="never">Never</option>

</select></div><br>

<div>Do you count calories and macronutrients?

<fieldset id="yes-no"><input type="radio" value="Yes" name="yes-no">Yes

<br><input type="radio" value="No" name="yes-no">No</fieldset></div><br>

<div>What kind of fitness components you want to focus on? Please select all that apply<br>

<input type="checkbox" id="checkbox" value="Strength"> Strength

<input type="checkbox" value="muscular-endurance" id="checkbox"> Muscular Endurance

<input type="checkbox" id="checkbox" value="cardiovascular-fitness"> Cardiovascular Fitness

<input type="checkbox" value="body-composition" id="checkbox">Body Composition

<input type="checkbox" id="checkbox" value="flexibility"> Flexibility

<input type="checkbox" id="checkbox" value="agility"> Agility

<input type="checkbox" id="checkbox" value="speed"> Speed

<input type="checkbox" id="checkbox" value="coordination"> Coordination

<input type="checkbox" id="checkbox" value="power"> Power

<input type="checkbox" id="checkbox" value="balance"> Balance

<input type="checkbox" d="checkbox" value="reaction-time"> Reaction Time

</div><br>

<div>Please tell me about your fitness goals:<br><textarea id="text" value="goals" name="goals"></textarea></div><br>

<div><button id="submit" value="submit" type="submit">Submit</div><br>

</form>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

You would have to describe issue properly, then you can be accordingly assisted

i failed 4 tasks and im not sure what im doing wrong. i tried everything and it is still wrong

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

Is that your full html code?

yes it is my full html code

to solve this one, look for the #name-label element

It is this one:

Notice how this label doesn’t have any text?
This is why the test is failing.
Put some text in between the label tags to solve this error.

Repeat these steps for each failed test. Identify the failing element and identify the solution. If you need more help, let us know.