Build a Hotel Feedback Form - Step 18build a hotel feedback form second legend issue

Was this your first time at our hotel?
</legend>

Tell us what’s happening:

hi. okay doing the build a hotel feedback form. my second legend was this your first time at our hotel not passing.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Hotel Feedback Form</title>
  </head>
  <body>
    <header>
      <h1>Hotel Feedback Form</h1>
      <p>
        Thank you for staying with us. Please provide feedback on your recent
        stay.
      </p>
    </header>
    <main>
      <form method="POST" action="https://hotel-feedback.freecodecamp.org">
        <fieldset>
          <legend>Personal Information</legend>
          <label for="full-name">Name (required):</label>
          <input type="text" id="full-name" name="name" placeholder="Ex. John Doe" required size="20">

          <label for="email">Email address (required):</label>
          <input
            placeholder="example@email.com"
            required
            id="email"
            type="email"
            name="email"
            size="20"
          />
          <label for="age">Age (optional):</label>
          <input type="number" name="age" id="age" min="3" max="100" />
        </fieldset>

<!-- User Editable Region -->

<fieldset>
   <legend>Was this your first time at our hotel?</hlegend>        
   </fieldset>

<!-- User Editable Region -->

      </form>
    </main>
  </body>
</html>

Your browser information:

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

Challenge Information:

Build a Hotel Feedback Form - Step 18
https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-18hi. okay doing the build a hotel feedback form. up to step 16. now not liking my legend and the text. what am i doing wrong? why is it not passing? will paste the error and then my code below. what am i doing wrong? using a screen reader and totally blind.
Sorry, your code does not pass. You’re getting there.

Your legend element should have the text of Was this your first time at our hotel?.

hi. got it. had to reset the lesson and then type it up again. passed. sorry. marvin.

your closing tag has hlegend (with an h in front) insteado of legend

hi. heres my code. still not liking says. i need a label below the legend. what am i missing. in my vs code, did take out the hh. but now in the editor. still complaining. so what am i doing wrong. pasting my code below. how to get it to pass. yes did reset and hand coded the label and the checkbox. what stupid thing am i doing wrong? as not able to see, and rely on text to speech. and using google chrome on windows 11.
help.
Skip to content

Menu
Profile

  1. Certified Full Stack Developer Curriculum
  2. Build a Hotel Feedback Form

index.htmlEditor

ConsoleHide the previewPreviewMove the preview to a new window and focus it

43

44

45

46

47

48

49

50

51

<fieldset>

<legend>

Why did you choose to stay at our hotel? (Check all that apply)

<label for="ads">Social Media Ads</label>

<input type="checkbox" id="ads" name="ads" value="ads">

</legend>

</fieldset>

Step 22

When you want a user to select multiple options from a list, you can use checkboxes.

Here is an example of how to work with checkboxes dealing with food options:

Example Code

<fieldset>
  <legend>Food Options</legend>
  <label for="pizza">Pizza</label>
  <input type="checkbox" id="pizza" name="food" value="pizza">
  <label for="burger">Burger</label>
  <input type="checkbox" id="burger" name="food" value="burger">
</fieldset>

The value attribute is used to specify the value that will be sent to the server when the form is submitted.

Below your legend element, add a label element with the text of Social Media Ads. The for attribute should be set to "ads".

Below your label element, add a checkbox input with the id, name and value attributes set to "ads".

Check Your Code (Ctrl + Enter)

Sorry, your code does not pass. Keep trying.

You should have a label element below your legend.


Reset

you have put the label and input inside the legend, they need to go after the legend

hi. they are outside the legend. and under neath the text check that all apply. so do i have it in the wrong place. can you show me where to put this. or do i need to reset, maybe type the field set and legend, and then copy the text again to get it to pass?
marvin..

in the code you shared here they are not outside the legend element, as they appear before the </legend> closing tag

if you have a different code please share it with us