Build a Hotel Feedback Form - Step 19

Tell us what’s happening:

Keeps on saying my radio button should be below my legend element which I’ve done. I can’t see the problem please help
My code

Hotel Feedback Form

Hotel Feedback Form

Thank you for staying with us. Please provide feedback on your recent stay.

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" />

<!-- User Editable Region -->

        <fieldset>
            <legend>Was this your first time at our hotel?</legend>
              <input type="radio" id="yes-option" name="hotel-stay">
                <label for="yes-option">Yes</label>
                </fieldset>

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36

Challenge Information:

Build a Hotel Feedback Form - Step 19

Welcome to the forum @lucywanjirunjige !

Good attempt!

If you run the code through this validation app it will guide you to the necessary fixes.

I use it to check my code, as one of the leaders some time back suggested it to me.

Keep up the good progress.:slightly_smiling_face:

1 Like

Hi @lucywanjirunjige and welcome to our community!

Your code is correct, except that you have lost a closing tag from a previous element above. Check that all elements have the correct opening/closing tags, throughout your code.

1 Like

Hello @lucywanjirunjige !

It was my intention to provide you with guidance to find the errors while using the validation tool as a resource that is very helpful in learning.

As I see the other person provided the direct issues for you.

I hope you still safe the tool to use while coding.

It is very helpful to find the errors in our codes, especially when we are working on our projects.

Keep up the good progress!:slightly_smiling_face: