4 ms·
HTML and XHTML are different things, and you can have proper documents in either. HTML is a subset of SGML. XML is designed for machines to read and write. SGM
by dannypgh 8y ago
HTML and XHTML are different things, and you can have proper documents in either. HTML is a subset of SGML.
XML is designed for machines to read and write. SGML, humans. It's like the difference between JSON and Markdown.
(Addendum: TIL HTML5 is not parseable as SGML. Because, reasons.)
- marktangotango 8y agoAccording to Firefox, chrome and amusingly not IEs xmlserializers, xhtml tags are case insensitive. The scars oh the scars..:
- bzbarsky 8y agoIf you send XHTML with the XHTML MIME type, the tags are case-sensitive. If you send it as "text/html"... well, then presumably you're relying on XHTML 1.0 Appendix C and letting browsers parse your XHTML as HTML. And HTML is case-insensitive.