Build a Hotel Feedback Form - Step 1

Tell us what’s happening:

I am following the Hotel Feedback Form workshop. In Step 1, it asks me to add a and an element with lang=“en”, then add a element inside.

I wrote my code like this:

html
Copy
Edit

Hotel Feedback Form However, when I submit, the workshop gives me this error: "Your opening head tag should come before the closing head tag."

I have checked my element and it seems

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Hotel Feedback Form</title>
</head>
<body>
  <!-- Form content will go here in the next steps -->
</body>
</html>







<!-- User Editable Region -->

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 1
https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-1

try to remove the elements and comments that are not requested in the istructions

1 Like

Hi Buddy, here are the instructions you need to follow.

Start by adding the <!DOCTYPE html> followed by an html element with a lang attribute of en.

Inside your html element, add a head element.

Can you tell me if this told you to add any comments ?

And inside head element are you instructed to add anything ?

When you will find this 2 answers then you willl be able to pass this test.

Hope this helped.

I am having similar issues with Step 1. It asks me to enter the followed by an html elemant and lang element. In my html element, to add a head element. No instructions to add anything else other than ‘en’ for lang.

This is what I have but the error message says the DOCTYPE element needs to go before the html element, but it already. This is preventing me from proceeding. Any help? Website glitch?

Please open your own thread

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.