📊 HTML
Q. Which of the following is not a difference between HTML and XHTML
  • (A) Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
  • (B) Tags and attributes are case-insensitive in HTML but not in XHTML
  • (C) Special characters must be escaped using character entities in XHTML unlike HTML
  • (D) None of the mentioned
💬 Discuss
✅ Correct Answer: (D) None of the mentioned

Explanation:

All the given options correctly describe differences between HTML and XHTML:

MIME Type

  • HTML uses text/html as its MIME type.
  • XHTML uses application/xml+xhtml or application/xhtml+xml for better XML parsing.

Case Sensitivity

  • In HTML, tag and attribute names are case-insensitive (e.g., <div> is the same as <DIV>).
  • In XHTML, they must be lowercase (e.g., <div> is valid, but <DIV> is not).

Special Characters Handling

  • In XHTML, special characters like <, >, and & must be written as character entities (&lt;, &gt;, &amp;).
  • In HTML, browsers are more forgiving about unescaped special characters.

Since all the given options correctly highlight actual differences, the correct choice is (D) None of the mentioned.

Explanation by: Official MCQ Buddy

All the given options correctly describe differences between HTML and XHTML:

MIME Type

  • HTML uses text/html as its MIME type.
  • XHTML uses application/xml+xhtml or application/xhtml+xml for better XML parsing.

Case Sensitivity

  • In HTML, tag and attribute names are case-insensitive (e.g., <div> is the same as <DIV>).
  • In XHTML, they must be lowercase (e.g., <div> is valid, but <DIV> is not).

Special Characters Handling

  • In XHTML, special characters like <, >, and & must be written as character entities (&lt;, &gt;, &amp;).
  • In HTML, browsers are more forgiving about unescaped special characters.

Since all the given options correctly highlight actual differences, the correct choice is (D) None of the mentioned.

💬 Discussion


📊 Question Analytics

👁️
362
Total Visits
📽️
4 y ago
Published
🎖️
Harikesh
Publisher
📈
80%
Success Rate