Build a Hotel Feedback Form - Step 15

Tell us what’s happening:

In hotel feedback form , step 15, I added the size attribute with its value of 20 but it was not correct. I don’t know why..

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>

<!-- User Editable Region -->

          <input type="text" id="full-name" name="name" placeholder="Ex. John Doe" required>
          <label for="email">Email address (required):</label>
          <input
            placeholder="example@email.com" size="20"
            required
            size="20"
            id="email"
            type="email"
            name="email"
            size="20"
            >
           
            
          
                  

<!-- User Editable Region -->

        </fieldset>
      </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/139.0.0.0 Safari/537.36

Challenge Information:

Build a Hotel Feedback Form - Step 15
https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-15

Having 3 copies of the same attribute can’t be correct.

Also, I think something is missing here.

Hey Buddy, see here this is the instructions is saying.


Give the name and email inputs a size attribute with a value of "20"

Here you need to put the value size=”20” to your email and name input

<label for="email">Email address (required):</label>
          <input
            placeholder="example@email.com" size="20"
            required
            size="20"
            id="email"
            type="email"
            name="email"
            size="20"
            >

Here in your code you’ve put this value 2 times so kindly do remove one.

In this element you need to add one.

Hope You Understand.

1 Like