We generally use for html5 declaration. But '!' refers to 'not' in computer science. So does it mean 'not DOCTYPE html'?
Asked
Active
Viewed 725 times
-1
-
No, it's not a standalone `!`, it's a ` `. – Niet the Dark Absol Jul 02 '17 at 10:02
-
`!` refers to a lot of different things with computers and even with computer science in particular. For example, some proofs in computer science use factorials. – Chai T. Rex Jun 10 '18 at 15:18
1 Answers
1
Of course there is documentation about Document type declarations (DTDs) and CDATA in general.
CDATA structures add additional information about a SGML and XML document. They start with a <!
, which is not a logical negation, just syntax. These structures aren't called tags, but declarations.
<!doctype HTML>
just means that the following document is an HTML5 document. In the past, there have been several very complicated DTDs.

PeterMader
- 6,987
- 1
- 21
- 31