Home » HTML » HTML Basic » Question
  1. Which of the following is not a difference between HTML and XHTML?
    1. Special characters must be escaped using character entities in XHTML unlike HTML
    2. Tags and attributes are case-insensitive in HTML but not in XHTML
    3. Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
    4. Charset in both html and xhtml is “text/html”
    5. 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.



Your comments will be displayed only after manual approval.