From 2173b8d68c05993d7ce009b1bd1dba64f1d606de Mon Sep 17 00:00:00 2001
From: Tony Ruscoe
Date: Wed, 26 Apr 2023 12:22:36 +0100
Subject: [PATCH] Update the HTML Document Type guidance
This removes the guidance around not closing void elements since this is incompatible with the Prettier formatter.
---
htmlcssguide.html | 3 ---
1 file changed, 3 deletions(-)
diff --git a/htmlcssguide.html b/htmlcssguide.html
index ab961e2..1a4b21c 100644
--- a/htmlcssguide.html
+++ b/htmlcssguide.html
@@ -173,9 +173,6 @@ depends on the project’s complexity.)
application/xhtml+xml
, lacks both browser
and infrastructure support and offers less room for optimization than HTML.)
-Although fine with HTML, do not close void elements, i.e. write <br>
, not <br
-/>
.
-
HTML Validity
Use valid HTML where possible.