I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/
Uncategorized
2
Posts
2
Posters
0
Views
-
I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/
-
I'm writing HTML by hand today and was reminded that closing <p> and <li> tags is optional https://blog.novalistic.com/archives/2017/08/optional-end-tags-in-html/
@b0rk Only in certain situations, though. The list of situation where it's valid to not explicitly close the tag is longer for <p> than for <li>.
<p>: https://html.spec.whatwg.org/multipage/grouping-content.html#the-p-element
<li>: https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element
-
R AodeRelay shared this topic