mathiasbynens / small

Smallest possible syntactically valid files of different types
https://mathiasbynens.be/notes/minimal-html
1.93k stars 184 forks source link

HTML5 file has syntax errors #89

Open ismael-miguel opened 6 years ago

ismael-miguel commented 6 years ago

The current content of the HTML5 (<!DOCTYPE html>) has syntax errors:

syntax error

This means that there must be present a <title> element in the document, being this the final code:

<!DOCTYPE html><title>x</title>

The same validates properly:

validated

This was verified using https://html5.validator.nu/

mathiasbynens commented 6 years ago

See https://mathiasbynens.be/notes/minimal-html#5 which is mentioned in the README.

ismael-miguel commented 6 years ago

If it is to be 100% standard compliant, HTML emails are far behind.

Heck, Microsoft Oulook 2007 and newer use the Microsoft Word engine to display the emails. (https://www.howto-outlook.com/faq/wordhtml.htm)

If it is "Smallest possible syntactically valid files of different types", do word processors rendering HTML count as a deciding factor on the syntax and implementation?

If they do, I propose the following: html5.html and html5-email.html as separated.