H

Harikesh • 8.04K Points
Tutor III

Q. State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”

  • (A) True
  • (B) False
  • (C) ---
  • (D) ---
  • Correct Answer - Option(B)
  • Views: 211
  • Filed under category HTML

Explanation by: Official MCQ Buddy

XHTML is a stricter, XML-based version of HTML 4.01.

  • Since XHTML follows XML rules, it can be mixed with HTML 4.01, but only under certain conditions.
  • If the document follows HTML 4.01 standards, it should use text/html as its MIME type.
  • If the document follows XHTML standards, it should use application/xhtml+xml as its MIME type.

Intermixing Conditions:

  • If an HTML 4.01 document contains XHTML content, it must be properly closed and well-formed.
  • Many modern browsers support mixing XHTML inside HTML documents.
  • However, the reverse (HTML inside strict XHTML) might not always work.

Thus, the statement "We can intermix XHTML and HTML 4.01 documents" is True but with certain restrictions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics