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:
https://www.geeksforgeeks.org/html-doctypes/
https://www.w3schools.com/tags/tag_doctype.asp
Connect
Top comments (4)
If you didn't like my article, i have also provided docs link, you can check them for a good explanation.
nice color scheme 😉
Thankyou.
Oh, thanks.