Update the HTML Document Type guidance

This removes the guidance around not closing void elements since this is incompatible with the Prettier formatter.
This commit is contained in:
Tony Ruscoe 2023-04-26 12:22:36 +01:00 committed by GitHub
parent 453aca8c43
commit 2173b8d68c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,9 +173,6 @@ depends on the projects complexity.)</p>
<a href="https://hixie.ch/advocacy/xhtml"><code>application/xhtml+xml</code></a>, lacks both browser
and infrastructure support and offers less room for optimization than HTML.)</p>
<p>Although fine with HTML, do not close void elements, i.e. write <code>&lt;br&gt;</code>, not <code>&lt;br
/&gt;</code>.</p>
<h4 id="HTML_Validity" class="numbered">HTML Validity</h4>
<p>Use valid HTML where possible.</p>