CodeIgniter DOCTYPE Declarations Reference | Generated by AI

Home 2025.10

Overview

This is a PHP array from the CodeIgniter framework (an open-source web application framework), which defines DOCTYPE declarations for various markup languages. A DOCTYPE is a document type declaration that informs browsers and validators about the version and standard of the markup language used in an HTML document. It ensures proper rendering and validation. These declarations are based on official W3C standards. Below, I’ll explain each one by grouping them thematically, including their purpose and typical use cases.

XHTML Doctypes

XHTML (eXtensible HyperText Markup Language) is HTML reformulated as XML, enforcing stricter syntax (e.g., requiring closing tags and lowercase elements).

HTML Doctypes

HTML is the standard markup for web pages, evolving from loose to strict standards.

MathML Doctypes

MathML (Mathematical Markup Language) enables displaying mathematical notations on the web.

SVG Doctypes

SVG (Scalable Vector Graphics) defines vector images in XML for web graphics.

Compound Doctypes

These combine multiple standards for rich, multimedia content.

Usage Notes


Back

x-ai/grok-code-fast-1

Donate