Learn-css-colors-by-building-a-set-of-colored-markers/step-1

Step 1

As you’ve seen in the previous projects, webpages should start with a DOCTYPE html declaration, followed by an html element.

Add a DOCTYPE html declaration at the top of the document, and an html element after that. Give the html element a lang attribute with en as its value.

My answer is

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

And it says its wrong. I tried with 3 different browsers

Hi there and welcome to our community!

I edited your post because your code will only display correctly if you enclose it in backticks. For future reference, the best way to seek help with a particular challenge is to click the Help button, which appears after you have submitted incorrect code three times. This will create a forum post which automatically includes your full code, a direct link to the challenge, and an opportunity for you to describe your issue in detail.

The reason your code is not passing this step is that your html element should have both an opening and closing tag. The rest of your document will be nested between these tags.

Thank you very much. I didnt understand the question and I thought I was just starting the webpage and only put the code from the beginning of the page. I appreciate your help.

1 Like