Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

DTD

Also known as: Document Type Definition

1 min read Updated November 10, 2026

Definition A set of rules defining the structure of an XML or HTML document.

What it is

DTDs specify allowed elements and attributes. HTML5 uses a simple <!DOCTYPE html>.

Why it matters for your business

The doctype ensures browsers render pages correctly.

Real-world example

Adding a proper doctype fixed layout issues in an old website.

Design Corner tip

Start HTML pages with <!DOCTYPE html>.