Learn HTML Forms by Building a Registration Form / STEP4

<head>
    <charset meta='utf-8'> 
    <title>Registration Form</title>
  </head>```

I even ask the ChatGPT but couldn't figure out what is the problem.

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Hey Stephen, thank you for your respond. I tried what you recommend, thank you so much. Can you answer my question?

You should note that meta is an element, a self-closing element and charset is an attribute. You did the vice versa.

1 Like

Thank you very much. I was struggling with this lesson for a couple of days, I don’t know why but every warning is saying me that ’ Your sample element should be inside your head element.’ And that’s not even the problem. It confuses me and I can’t see the actual problem. Now in step 5, I met the same problem again. Please help me…

  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css">
  </head> 
  

And the warning is ‘‘Your link element should be inside your head element.’’.

You are very much welcome. For the step 5 problem you will have to create a separate post.

1 Like