Learn Basic CSS by Building a Cafe Menu - Step 1

I’m having trouble with the first section of this module. I type everything correctly but still get the error, as shown the screenshot. Please help

Your code so far


<!-- User Editable Region -->


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

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 1

1 Like

Hello @sjfufu2! Welcome to the community!

Just a small typing error. There is a space missing between the DOCTYPE and html.

Happy coding!

Hello @sjfufu2 welcome to our forum.
In addition to what @anon42932716 commented,
The lang attribute should be inside the opening tag of an html element. Create the element and place your attribute where appropriate.

1 Like

There is an issue besides the spacing. You can not use /> here. The html element must have a closing tag.

<elementOpen>
</elementClose>
2 Likes

hola la etiqueta de html deberia ser <html lang="en"> para que sea correcta.
Un saludo

Thanks a lot @anon42932716. I have corrected that error but the code still fails

1 Like

Still need to fix this if you have not

2 Likes

Screenshot 2023-11-01 134430
Thank you @stephenmutheu , I have corrected as advised but still get an error

Thanks @Cody_Biggs . Noted

1 Like

You have to close your html element.

1 Like

Hola y gracias @robertopinillamartin ya corregí el error pero sigo apareciendo error

1 Like

te faltaria el cierre </html> para que fuera correcto
Un saludo

1 Like

Screenshot 2023-11-01 135256
Like this? Forgive me fellas I’m new to this :smiling_face_with_tear:

2 Likes

Thank you guys I have corrected it and it works

2 Likes

The backslash should come after the greater than sign.

Thanks a lot brother. Fixed it

1 Like

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