-1

We generally use for html5 declaration. But '!' refers to 'not' in computer science. So does it mean 'not DOCTYPE html'?

Subhadip
  • 423
  • 8
  • 16

1 Answers1

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