Survey Form - Build a Survey Form

Tell us what’s happening:
Hi all,
i run test after each step and always does not pass. Am I missing something obviuos here ?

Your code so far

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

/* file: styles.css */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Survey Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
<body>
<h1 id='title'>Survey Form</h1>
<p id='description'>Please fill out this form</p>
<form id='survey-form'>
<fieldset>
        <label for="name-label">Name<input id="name-label" name="name-label" type="text" required /></label>
        
      </fieldset>
</form>
</body>  

Your browser information:

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

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

You should have an input element with an id of name .

You don’t have an an input element with an id of name .

This means that this test (and subsequent tests which depend on this) are failing.

Thanks for the revert! However, id is not supposed to be element, I understand it should be attribute, no ?

User Stories:

  1. You should have a page title in an h1 element with an id of title
  2. You should have a short explanation in a p element with an id of description

Yes, id is an attribute.

You should have a page title in an h1 element with an id of title

This simply means that you should have an h1 element which has an id attribute with a value of title.

Survey Form

- isn't it this

Yes, that test is passing.

The test which is failing is:

You should have an input element with an id of name .

…and because that test is failing, so are the three tests which follow, because they also rely on you having an input element with an id of name.

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