Why do I have wrong code in here?

Tell us what’s happening:
Have been messing for a long time here. Seems simple steps, but taken so much time to search on the web , how to fix it.
I have thought :

  • should be in the beginning of page ?

  • or what I am doing wrong ?

Thank you for your help.
Your code so far


<h1><--!DOCTYPE html--></h1>
<html><!DOCTYPE html></hmtl> 


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36.

Challenge: Declare the Doctype of an HTML Document

Link to the challenge:

Hi @Bond007,

Follow the example below:

image

Then replace the yellow highlights with your h1 tags and include any text you would like in it.

I hope this helps :slight_smile:

You misspelled it should be and you put some codes in wrong orders.
change the place of . it should come first.

<!--try to do this!-->

<!Doctype html>
<html>
    
      <head>
            <title></title>
      </head>
<body>
     <h1></h1>
</body>

</html>

The <!DOCTYPE> must be the very first thing on the page.

It specifies which language the browser is supposed to be reading, and how to translate the code it is provided with.

The <!DOCTYPE> declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browsers.