Your #name should be a descedant of #survey-form

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <title> Survery</title>
  <h1 id="title">Save the Children</h1>
  <!--Add in a better title than that-->
  </head>
  <body>
  <header> 
<p id ="description" >Please anwer the questions as accuratly and honestly as possible. The children depend on your feedback to help their hospital stay. Thank you!</p>
<!--Make a better description-->
</header>
<form id="survey-form" class="survery-form" ></form>
<input id="name"type="text" ><label id="name-label"> This is the name label<required ></input>
<br>
<input id="email" type="email"><label id="email-label">This is the email label</label></input>
<br>
<input type="number" type="email" min="200" max="500"><label id="number-label"> This is the number label</label></input>
<br>
<label id="name-label">Here is the name label</label><!--Remove-->
<br>
<label id="email-label">Here is the ID Label</label> <!--remove-->
<br>
<label id="number-label">Here is the number label</label> <!--remove-->
/* file: styles.css */


  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.30

Challenge: Build a Survey Form

Link to the challenge:

1 Like

Hello, I am asking if there is someone who can explain what a descedant is? Im not really understanding when the task is asking me if the name should be a descedant of survey-form. Thanks!

2 Likes

All your input elements are outside the form element, they should be inside it.

A descendant is a child or grandchildren, etc. It means the element should be inside a parent element.

<article>
  <p>descendant of parent article element</p>
</article>

1 Like

Hi @ejfad
You can check english words here:

and sentences here:

I hope it helps. Good luck :hugs:

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