Build a Hotel Feedback Form - Step 15

Tell us what’s happening:

I cannot pass please check my code. I tried everything

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"
            required
            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/134.0.0.0 Safari/537.36 OPR/119.0.0.0

Challenge Information:

Build a Hotel Feedback Form - Step 15

Please talk about some of the “everything” you have tried?

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

What parts of your code are where you’ve tried to do this? There should be two lines, as there are 2 elements mentioned in the instructions.

I asked my brother to help me as he normaly assist me when Im stuck and told me to type full size=“20” which it gave syntax error. also typed required size=“20” also did not work

The instructions do not talk about required so you should not use it.

Can you please say exactly what lines of code in your first post you think meet the instructions?

size=“20”. I removed required but still does not allow me to pass

That is only one line.

The instructions ask you to set the size to "20" for two elements though.

I don’t follow you mean the size and the email attributes should have the value “20”

This sentence says that you need to give a size attribute to two different elements - the name and email inputs.

Can you identify the name and email inputs?

label for="email" size="20"

That is not a full HTML element.

Can you please identify in your code the full name element and the full email element?

I actually got it now. The instruction says both email and name inputs a size attribute. So I was only giving the name only not the email. Thank you very much for your assistance

1 Like