+ 1
Can anyone tell, why ! Is used in front of DOCTYPE HTML?What Is the purpose of ! Over there?
15 Réponses
+ 4
It prevents doctype from being read as an element but as a declaration
+ 2
It declares the doctype
https://www.geeksforgeeks.org/html-doctypes/
https://www.w3schools.com/tags/tag_doctype.asp
+ 2
https://teamtreehouse.com/community/what-is-the-bang-for-at-the-beginning-of-the-html-5-doctype
+ 2
To make the browser know that the website is made by an html code language
+ 1
it is simply part of the syntax. it is defined this way.
<!DOCTYPE html>
+ 1
This is read already but the thing doctype specifies document type right then why we are writing ! Symbol ?? It should also have some meaning right?
+ 1
Thank you
+ 1
It fulfils the usefulness of the DOCTYPE HTML ,because doctype is declaration for any code
+ 1
It declares it as a doctype and not an element of the actual code
+ 1
It is decleartion of html 5. and simple syntax of html 5.another html versions so long sentences nd any more
+ 1
It tells the version of html
0
Why it is neccessary??
0
Thank you
0
Thank you Tamim Moh'd