Survey Form - Build a Survey Form

Tell us what’s happening:

I can not figure out why my h1 element is incorrect and why my #title is not filled. Please help

Your code so far

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

/* file: styles.css */
<!DOCTYPE html> 
<html lang="en">
<head>
   <meta charset="utf-8">
   <title>What is your favorite holiday</title>
   <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1 id=title>What is your favorite holiday?!</h1>
    <p id="description">What is your favorite holiday?!</p>

    </body>
</html>

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

hi there, u have a mistake in your id.

<h1 id=title>

you are meant to wrap your #title in double quotes like you did for the #description.

Thank you I did miss the “” on title. Made the correction but it will still not clear…??

like what problem exactly are u facing right now?

I am just trying to satisfy steps 1-4

    1. You should have an h1 element with an id of title.
  • Failed:2. Your #title should not be empty.

  • Failed:3. You should have a p element with an id of description.

  • Failed:4. Your #description should not be empty.

do u mind posting your updated code

I exited and re-entered the module and now sets 1-4 are clear!
Thank you for spotting the “” that was helpful!!

1 Like

Hi there!

You should also fix your link element’s href value. You need styles.css as the href value.

your code is in your .css file, you need to write the html in the .html file

1 Like

Thank you for spotting that!

1 Like

Thanks! I missed that too.

1 Like

you are very much welcome