Q. State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”
✅ Correct Answer: (B)
False
Explanation:
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.