What is the difference between html and xhtml? | Sololearn: Learn to code for FREE!
+ 3

What is the difference between html and xhtml?

3rd Jul 2018, 10:00 AM
Emmanuel Adu Sarpong
Emmanuel Adu Sarpong - avatar
4 Antworten
+ 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
3rd Jul 2018, 10:31 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 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.
4th Nov 2018, 5:22 AM
Asmit joy
Asmit joy - avatar
0
Thanks
3rd Jul 2018, 10:45 AM
Emmanuel Adu Sarpong
Emmanuel Adu Sarpong - avatar