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

๐Ÿ‘๏ธ
396
Total Visits
๐Ÿ“ฝ๏ธ
4 y ago
Published
๐ŸŽ–๏ธ
Harikesh
Publisher
๐Ÿ“ˆ
87%
Success Rate