3 ms·
if that were true then browsers would refuse to render text/html responses that didn't include a closing </html> tag, i guess
by preseinger 4y ago
if that were true then browsers would refuse to render text/html responses that didn't include a closing </html> tag, i guess
- goto11 4y agoNo, because the closing </html> tag can be omitted according to the current HTML spec. See https://html.spec.whatwg.org/#optional-tags https://html.spec.whatwg.org/#optional-tags
- preseinger 4y agothis is exactly my point html is not precisely defined
- 4rt 3y agoI think you're missing the point that it is defined, the current html5 spec says that <title> implies the existence of <head>, <body> implies the end of <head>, body tags imply the end of <head> and the start of <body> etc. HTML5 is not XHTML. <!DOCTYPE html> <title>Title <h1>Heading expands to <!DOCTYPE html> <head><title>Title</title></head> <body><h1>Heading</h1></body>
- preseinger 3y agoif `<title>A <h1>Heading` is equivalent to `<head><title>A</title></head> <body><h1>Heading</h1></body>` then this means the language is not precisely defined
- goto11 3y agoSorry I don't understand your argument. HTML is fully and unambiguously defined, as you can see if you follow the link. Some tags are optional in certain contexts, but this is also precisely defined.