We will understand this code:
- 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:
geeksforgeeks.org/html-doctypes
w3schools.com/tags/tag_doctype.asp
Connect