Build a Hotel Feedback Form - Step 16

Tell us what’s happening:

After so many attempts its still showing error

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

    <label for="yes-option">Yes</label>
    <input id="yes-option" type="radio" name="hotel-stay" value="yes">

    <label for="no-option">No</label>
    <input id="no-option" type="radio" name="hotel-stay" value="no">
  </fieldset>

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="e.g., 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>
        <fieldset>

<!-- User Editable Region -->

          <!-- Radio group -->
        <legend>Was this your first time at our hotel?</legend>

        <label for="yes-option">Yes</label>
        <input id="yes-option" type="radio" name="hotel-stay" value="yes">

        <label for="no-option">No</label>
        <input id="no-option" type="radio" name="hotel-stay" value="no">
      </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/148.0.0.0 Safari/537.36

Challenge Information:

Build a Hotel Feedback Form - Step 16

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-hotel-feedback-form/66a9521bc70162712caf118d.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @sumera.farooq092,

Here’s an excerpt from the instructions:

Below your radio button, add a label element with the text Yes and a for attribute set to "yes-option" .

Were you asked to add a “no” option? Where were you asked to put the label?

Happy coding