+ 1

Can anyone tell, why ! Is used in front of DOCTYPE HTML?What Is the purpose of ! Over there?

13th Dec 2022, 2:46 PM
Shreepriya HA
14 Respostas
+ 4
It prevents doctype from being read as an element but as a declaration
13th Dec 2022, 3:19 PM
Kondwani Bwenzi Ng'ombe
Kondwani Bwenzi Ng'ombe - avatar
+ 2
https://teamtreehouse.com/community/what-is-the-bang-for-at-the-beginning-of-the-html-5-doctype
13th Dec 2022, 3:52 PM
arturop200
arturop200 - avatar
+ 2
To make the browser know that the website is made by an html code language
14th Dec 2022, 4:06 PM
Omar marouf
Omar marouf - avatar
+ 1
it is simply part of the syntax. it is defined this way. <!DOCTYPE html>
13th Dec 2022, 2:53 PM
Lisa
Lisa - avatar
+ 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?
13th Dec 2022, 3:02 PM
Shreepriya HA
+ 1
Thank you
13th Dec 2022, 3:27 PM
Shreepriya HA
+ 1
It fulfils the usefulness of the DOCTYPE HTML ,because doctype is declaration for any code
14th Dec 2022, 11:40 PM
Adebisi Daniel
Adebisi Daniel - avatar
+ 1
It declares it as a doctype and not an element of the actual code
15th Dec 2022, 2:47 AM
Alex
Alex - avatar
+ 1
It is decleartion of html 5. and simple syntax of html 5.another html versions so long sentences nd any more
15th Dec 2022, 6:15 AM
Kamal Gupta
Kamal Gupta - avatar
+ 1
It tells the version of html
19th Dec 2022, 9:21 AM
AVIRAL GUPTA
AVIRAL GUPTA - avatar
0
Why it is neccessary??
13th Dec 2022, 2:54 PM
Shreepriya HA
0
Thank you
13th Dec 2022, 4:12 PM
Shreepriya HA
0
Thank you Tamim Moh'd
14th Dec 2022, 5:45 PM
Shreepriya HA