mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
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:
parent
453aca8c43
commit
2173b8d68c
|
@ -173,9 +173,6 @@ depends on the project’s 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><br></code>, not <code><br
|
||||
/></code>.</p>
|
||||
|
||||
<h4 id="HTML_Validity" class="numbered">HTML Validity</h4>
|
||||
|
||||
<p>Use valid HTML where possible.</p>
|
||||
|
|
Loading…
Reference in New Issue
Block a user