HTML by Example

This is intended as an introduction to the language and a guide to implementors. It does not comprise an integral part of the HTML specification.

The following sections describe the HyperText Markup language by example. They are organized in order of complexity, both for the human reader and the SGML application.

Recommended
Examples of how to write HTML that won't stress the processing software. Some things can't be done this way.
Complete
Examples of all the constructs necessary to produce HTML documents.
Tolerated
Examples of illegal constructs that are supported for historical reasons.
Errors
These are just plain broken. Implementors should use these to bullet-proof their code.