Difference in display between HTML and XHTML
问题 I thought XHTML documents were supposed to be displayed with exactly the same standards compliance mode as "strict" HTML documents. However, there is a difference in how they display pre elements: in HTML documents, if the <pre> start tag is followed by a LF (or CRLF), this is ignored. Not so in XHTML. Example: a HTML file and a XHTML file that have the same content, but are rendered differently. (Or if you think it's cheating to give a HTML file and a XHTML file exactly the same content,