Learn HTML Forms by Building a Registration Form - Step 2

** lang attribute set to en - what does that mean and what am I doing wrong?**
Describe your issue in detail here.

Your code so far


<!-- User Editable Region -->

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


<!-- 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/116.0.0.0 Safari/537.36

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

Link to the challenge:

This part is fine

This though isn’t a proper start to your tag. Also, you are missing a closing tag for this element.

1 Like

Why doesnt the below work?

<lang=“en”>

Because that is not an html element

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

and

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

No working…

That’s also not a html element. It has to start with <html .... to be an html element

1 Like
? why isnt it working?

Did you fix it so it is a html element?

<html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/><html lang="en"/>

Writing the same thing that many times will probably not pass the tests.

Did you add a corresponding closing tag?

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

Still not working…

<!DOCTYPE html>

<html lang="en"/>

What’s your new code? I unfortunately (probably fortunately actually) cannot remotely view your computer screen and see what is not working

I cant seem to post my code on here keeps disappearing…

Did you see this post I made?

Ah, here’s you code. You didn’t format it.

I think you keep missing this part of what I’m saying.

Not clear on how I format it and its got > so a closing tag is included right?

Can you say what part of the formatting instructions are unclear?


No, a > is not a tag. A tag has both a < and a >

You have an opening tag with a < and a > but you do not have a closing tag.

Here…still not working

<a lang='en'>

</a>

<html/>

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 (').