HTML - DOCTYPE how to use <!DOCTYPE> tag

The HTML <!DOCTYPE> declaration is not really a HTML tag and is used to tell the browser on which version of HTML is used.

The HTML <!DOCTYPE> declaration must be the first item on a HTML page and it must appear before the <html> tag.


<!DOCTYPE html> <html> <head> <title>some page</title> </head> <body> <h1>learn at</h1> </body> </html>