-
Which of the following is not a difference between HTML and XHTML?
-
- Special characters must be escaped using character entities in XHTML unlike HTML
- Tags and attributes are case-insensitive in HTML but not in XHTML
- Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
- Charset in both html and xhtml is “text/html”
- None of these
Correct Option: D
HTML is case insensitive while XHTML is case sensitive. In XHTML, special characters can be escaped using character entites but not in HTML. Charset in HTML is “text/html” where as it is “application/xml+xhtml” for XHTML.