Tell us what’s happening:
hi cannot seem to get the label element correct. what am i doing wrong. confused.
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>
<!-- User Editable Region -->
<form method="POST" action="https://hotel-feedback.freecodecamp.org">
<fieldset>
<legend>Personal Information</legend>
<label for="full-name">Name:</label> required>
<input required type="text" name="name" id="name">
</fieldset>
</form>
<!-- User Editable Region -->
</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 9
https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-9hi. doing the label and text. confused. need a little advice. does not like the text and how to do the required on the label. know how to do that on the text. is this the correct code. can any one shed any light and help me to get it pass. ahve reset the lesson 3 times. still not liking it. and now looked at the code example and trying my code. so will paste the error message and my code.
marvin.
<label for="full-name">Name:</label> required>
Your `label` element should have the text of `Name (required):` .