DEV Community

Cover image for <!DOCTYPE html>
Amritanshu Dev Rawat
Amritanshu Dev Rawat

Posted on

<!DOCTYPE html>

We will understand this code:

image.png

  • Technically this is not a tag/element, it just an "Instruction" to the browser about the document type.

  • We Call it DTD [Not a special move from your WWE character].

  • It's know as Document Type Declaration [as name suggests it declare the document type].

  • So, basically we are saying:

    Hey browser, I am using a document that contain HTML and in this Document i have used all the new features of HTML version 5. So, at the time of rendering document don't say - I don't know about it, else i will beat the shit out of you.

Read More:

https://www.geeksforgeeks.org/html-doctypes/

https://www.w3schools.com/tags/tag_doctype.asp

Connect

  • Twitter

https://twitter.com/NewGenDeveloper

Top comments (4)

Collapse
 
amritanshu profile image
Amritanshu Dev Rawat

If you didn't like my article, i have also provided docs link, you can check them for a good explanation.

Collapse
 
madza profile image
Madza

nice color scheme 😉

Collapse
 
amritanshu profile image
Amritanshu Dev Rawat

Thankyou.

 
amritanshu profile image
Amritanshu Dev Rawat

Oh, thanks.