Tell us what’s happening:
I am stuck on Step 15 of the “Build a Hotel Feedback Form” project. The instructions say to give the name and email input elements a size attribute with a value of “20”.
I added size=“20” to both inputs, but the test is still failing. I also removed extra labels, but it still shows the error.
Here is the code I have for the name and email inputs:
Name (required):
<input
type=“text”
id=“name”
name=“name”
placeholder=“Ex. John Doe”
required
size=“20”
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>
<!-- User Editable Region -->
<label for="full-name">Name (required):</label>
<input
type="text"
id="name"
name="name"
placeholder="Ex. John Doe"
required
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