Skip to content

Commit

Permalink
Update the HTML Document Type guidance
Browse files Browse the repository at this point in the history
This removes the guidance around not closing void elements since this is incompatible with the Prettier formatter.
  • Loading branch information
tonyruscoe committed Apr 26, 2023
1 parent 453aca8 commit 2173b8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions htmlcssguide.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,6 @@ <h4 id="Document_Type" class="numbered">Document Type</h4>
<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>
Expand Down

0 comments on commit 2173b8d

Please sign in to comment.