Learn HTML Forms by Building a Registration Form - Step 2

The hint I’m receiving states " Your html element should have a closing tag."
the code i’ve written is:

Can someone please explain why it’s not being accepted and what I can do to advance?

Your code so far

<!DOCTYPE html>
<html lang="en">

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0

Challenge: Learn HTML Forms by Building a Registration Form - Step 2

Link to the challenge:

So please put the closing html tag after this opening tag. Closing tags are written with a backslash before the tagname. Something like this </tagname>.

2 Likes

Thank you for your help. What I didn’t realize having taken a break from practicing was that closing tags aren’t just the > but require <> </> after the opening tag.
The solution I was looking for was:

A closing tag should look like this:

</html>

without any spaces. Space was included so code would appear in text.

I’ve edited your code for readability. When you enter a code block into a forum post, 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 (').

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.