Build a Hotel Feedback Form - Step 15

Tell us what’s happening:

I am struggling in the forms section, stage 15 where it says my “Last Name input should be a size of 20”. There was a example provided as . I have tried this code character and word for word and change the size in my code to 20 "Last name:
. Could I please have some guidance on where my fault is?

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

<!-- User Editable Region -->

       <fieldset>
  <legend>Personal Information</legend>
  
  <label for="fullname">First name:</label>
  <input id="fullname" name="fullname" type="text" placeholder="Ex. John Doe" />

</br>


 <label for="lastName">Last Name:</label>
<input id="lastName" name="lastName" type="text" size="20" />

</br>

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

  </br>





<!-- 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/134.0.0.0 Safari/537.36

Challenge Information:

Build a Hotel Feedback Form - Step 15

Hi there, welcome to the community!

Your code includes an extra line that isn’t necessary and doesn’t align with the lesson instructions. To fix this, please reset your lesson and follow the given instructions carefully:

Add a size attribute with a value of "20" to the name and email inputs.

The lastName input is just an example and isn’t needed for this task.

Example (unnecessary code)
<label for="lastName">Last Name:</label>
<input id="lastName" name="lastName" type="text" size="10" />

Simply add the size attribute to the fullname and email inputs as required by the lesson.
Hope this helps! :blush:

Thank you so much. Yes I did not see that I added the extra one, it worked. I really appreciate it.

1 Like