Content deleted Content added
Gravidus25 (talk | contribs) |
m v2.05b - Bot T21 CW#557 - Fix errors for CW project (Missing whitespace before a link - Tags without content) |
||
Line 339:
=== Document type declaration ===
HTML documents are required to start with a
The original purpose of the doctype was to enable the parsing and validation of HTML documents by SGML tools based on the [[document type definition]] (DTD). The DTD to which the DOCTYPE refers contains a machine-readable grammar specifying the permitted and prohibited content for a document conforming to such a DTD. Browsers, on the other hand, do not implement HTML as an application of SGML and as consequence do not read the DTD.
Line 423:
* Use the empty-element syntax only for elements specified as empty in HTML.
* Remove the closing slash in empty-element tags: for example {{code|lang=html|code=<br>}} instead of {{code|lang=html|code=<br/>}}.
* Include explicit close tags for elements that permit content but are left empty (for example, {{code|lang=html|code=
* Omit the XML declaration.
|