Build a Survey Form first task about id?

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

  **Your code so far**
\ file: <!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles.css">
  <title>
<h1 id="title">survey form</h1>
    </title>
  </head>
  <h1>survey form</h1>
  <p id="description">here you can put your information to win a price</p>
  <body>

    </body>
</html>
<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" href="styles.css">
  <title>
<h1 id="title">survey form</h1>
    </title>
  </head>
  <h1>survey form</h1>
  <p id="description">here you can put your information to win a price</p>
  <body>

    </body>
</html>
\ file: 

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.59

Challenge: Build a Survey Form

Link to the challenge:

What they mean, by add a ID in title, i doent get this? is this a new task and i have to think how i add it?
I tried to add id in the h1 element but this seems to be wrong, how do i undedrstand this first task?

The title element seems to be messing with something. When I remove that, that test passes.

Understand that we are talking about two different ideas of title here. There is the title in the head - that is the “title” that shows in the browser tab. That is different than the “title” of the page, that you see at the top of the page. So, really, you just have things in the wrong place.

That code above, inside the title should just be plain text, not an html element. Down below you have:

  <h1>survey form</h1>

That is the title that will show on the top of the page, that is the one that should have the id.

Thank you so much for your reply, the problem is that the code doesnt pass, no matter what i do, which form of ID do they meant. I didnt get it right and i am a lil bit confused. which title should i use, i already use both? and where should i put id?

What you had before:

<h1 id="title">survey form</h1>

was the right idea, I just think it was in the wrong place. It should not be in the head. You can have a title element there (should be a simple string, not an h1 element), but that is a different title than the one they mean, they mean the one that shows on the page.

If it’s not passing, please post the current state of your code.

1 Like

thanks for your help, i get it done completly, after i solve the first task, which i posted here. to be honest, i have looked trough the other exercise, because i couldnt remember the most thinks which i have to write.
netherless i have much done myself and get a good understanding

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