This section describes some guidelines to follow when writing HTML examples. It's split into two sections:
- Formal guidelines cover formal aspects of the example, such as how long it should be.
- Content guidelines cover the actual content of the example: that is, what it should include or exclude.
Sometimes formal and content guidelines are at odds. For example, sometimes writing a useful example means making it longer than the formal guidelines ask. Usually, when this happens, we should prioritize content guidelines.