Stuck in User Story #12 Survey Website

How can i pass the test ?
User Story #12: Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown" .
I already did the dropdown menu but the script dont reconizes it!

 <div class="dropdown Questionary" id="dropdown">
  <button class="dropbtn">Dropdown</button>
  <div class="dropdown-content">
    <a href="#">Link 1</a>
	<a href="#">Link 1</a>

  </div>
</div>

Hey there,

nice to meet you!

I’ve edited your post 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 (’).

You added id="dropdown" to a div, great work so far!

The tasks wants you to Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown".

So you have to create a form and a dropdown first. You can create a dropdown with select and some option elements.

1 Like

Welcome to the forums @ebusinesstoken. It’s easier to help if you provide a link to your code rather than just a snippet. Seeing all your code makes it easier to troubleshoot.
Based on the snippet provided you don’t have a dropdown. Review the following for help on creating a dropdown in HTML
https://www.w3schools.com/tags/tag_select.asp

1 Like