Re:Using Standard HTML (1997)
by vbezhenar on Sunday January 19, 2020 @10:23AM
(#22091866)
Does every popular browser support it in the same way? I would expect some subtle differences, because this mode is not very popular and probably not as tested as standard HTML.
[ Parent
| on HN ]
On the contrary, part of the point of XHTML is you can reference the document type definition (DTD) so everyone would be on the same page.
https://www.w3.org/wiki/Doctypes_and_markup_styles
For example...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
... is the XHTML 1.0 equivalent of HTML 4.01 except it won't validate loose HTML style markup, it all needs to be well formed XML.That said, for HTML5 ...
https://stackoverflow.com/questions/1570418/if-i-use-html-5s...
Ten years ago they thought that should work a while. Looks like it.
Thanks, those are definitely good things. I never had much thought about it, but I definitely was bitten more than once by those auto-closing and auto-generating HTML tags, so strict XML might be a good alternative. Definitely will try it next time.
Re:Using Standard HTML (1997)
by garaetjjte on Monday January 20, 2020 @11:12AM
(#22099806)
Note that XHTML must be served with application/xhtml+xml content-type.