"you need a doctype declaration" I dont get it?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Step 1

Link to the challenge:

Do you have a question? Do you have any code? You didn’t give us anything to work with here.

I started the second course of creating a coffee menu and the first step is to write a doctype declaration with language set as english , so I did that and my doctype gets grayed out and it says that i need to write it , wich i already did

What is your code?

my code is :

<!DOCTYPE html lang="en">

You need 3 tags

  1. Doctype tag
  2. opening html tag
  3. closing html tag

I’ve edited your post 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 (').

<!DOCTYPE html lang="en"> 


it still does not work , or maybe I am doing something wrong?

Please post actual code instead of pictures.

You only have 2 tags in that image. You merged together the contents of the Doctype tag and the opening html tag.

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


this seems to work , thank you

1 Like

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