+ 3
What is the difference between html and xhtml?
4 Réponses
+ 9
Hello, Kojo Manuel !
HTML is the standard markup language for documents on the World Wide Web, also HTML is an SGML application (standard generalized markup language). And XHTML, in turn, is an extensible hypertext markup language based on XML. The main difference is that XHTML, in contrast to HTML, uses XML syntax. That is, XHTML requires more strict syntax markup rules than HTML.
The advantage of XHTML is that the analysis of the XHTML document is simpler and faster because of the use of strict syntax rules, XHTML processing is possible even on mobile phones with few resources.
https://www.sololearn.com/Course/HTML/?ref=app
+ 4
XHTML is based on XML, and thus requires the source to be well-formed. Since XHTML is more strict than HTML, less pre-processing is needed by the rendering engine.
XHTML should be served as application/xhtml+xml for you to take advantage of the benefits, otherwise XHTML will be treated as ordinary HTML. Serving it as 'application/xhtml+xml' is not common on the web due to Internet Explorer, which cannot handle XHTML.
+ 1
0
Thanks