Did you know: Some closing HTML tags are optional?
html.spec.whatwg.org
Did you know: Some closing HTML tags are optional?
1–5 of 5 posts
Re: Did you know: Some closing HTML tags are optional?
#2Useful for code-golfing HTML, but the complexity of rules sounds like a maintenance nightmare for professional use.
Re: Did you know: Some closing HTML tags are optional?
#3Useful for code-golfing HTML, but the complexity of rules sounds like a maintenance nightmare for professional use.
Yes and it increases XSS (cross site scripting) risk.
Re: Did you know: Some closing HTML tags are optional?
#4HTML was intended at first to be hand crafted by scientists. That it should be forgiving is a good thing, because who wants a "this page has imperfect html" message.
Re: Did you know: Some closing HTML tags are optional?
#5I've never dived (dove? doven?) into the output of an HTML minimizer, but I assumed this was one of the things it would do - remove all optional tags while retaining the same DOM tree output.