hi. okay doing the build a hotel feedback form. my second legend was this your first time at our hotel not passing.
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="Ex. 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" />
</fieldset>
<!-- User Editable Region -->
<fieldset>
<legend>Was this your first time at our hotel?</hlegend>
</fieldset>
<!-- User Editable Region -->
</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/136.0.0.0 Safari/537.36
Challenge Information:
Build a Hotel Feedback Form - Step 18 https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-18hi. okay doing the build a hotel feedback form. up to step 16. now not liking my legend and the text. what am i doing wrong? why is it not passing? will paste the error and then my code below. what am i doing wrong? using a screen reader and totally blind.
Sorry, your code does not pass. You’re getting there.
Your legend element should have the text of Was this your first time at our hotel?.
hi. heres my code. still not liking says. i need a label below the legend. what am i missing. in my vs code, did take out the hh. but now in the editor. still complaining. so what am i doing wrong. pasting my code below. how to get it to pass. yes did reset and hand coded the label and the checkbox. what stupid thing am i doing wrong? as not able to see, and rely on text to speech. and using google chrome on windows 11.
help. Skip to content
ConsoleHide the previewPreviewMove the preview to a new window and focus it
43
44
45
46
47
48
49
50
51
<fieldset>
<legend>
Why did you choose to stay at our hotel? (Check all that apply)
<label for="ads">Social Media Ads</label>
<input type="checkbox" id="ads" name="ads" value="ads">
</legend>
</fieldset>
Step 22
When you want a user to select multiple options from a list, you can use checkboxes.
Here is an example of how to work with checkboxes dealing with food options:
hi. they are outside the legend. and under neath the text check that all apply. so do i have it in the wrong place. can you show me where to put this. or do i need to reset, maybe type the field set and legend, and then copy the text again to get it to pass?
marvin..