Horje

HTML 5 doctype - Doctypes - HTML
Learn
HTML - Doctypes - Html 5 doctype
HTML 5 Doctype

HTML5 is not based on SGML, and therefore does not require a reference to a DTD.

HTML 5 Doctype declaration:

<!DOCTYPE html>

Case Insensitivity

Per the W3.org HTML 5 DOCTYPE Spec (opens new window):

A DOCTYPE must consist of the following components, in this order:

    • A string that is an ASCII case-insensitive match for the string "<!DOCTYPE".

    therefore the following DOCTYPEs are also valid:

    <!doctype html>
    <!dOCtyPe html>
    <!DocTYpe html>
    
    

    This SO article discusses the topic extensively: Uppercase or lowercase doctype? (opens new window)

    Read Article
    https://develop.horje.com/learn/1434/reference