News for hackers. Stuff that matters.
Re:The case against self-closing tags in HTML by roelschroeven on Thursday July 06, 2023 @01:52PM (#36620001)
To be pedantic, it's the tags that are optional, not the elements. The html, header and body elements are still there even if you don't write the tags.

Quoting from the document you linked:

"Omitting an element's start tag in the situations described below does not mean the element is not present; it is implied, but it is still there. For example, an HTML document always has a root html element, even if the string <html> doesn't appear anywhere in the markup."

There are no comments on this comment yet.