Post Class Assessment Lecture 7
Post Class Assessment Lecture 7
Semantics
Multiple Choice Questions (MCQs)
5. What will happen if an XHTML document does not have the xmlns attribute in the
<html> tag?
a) The browser will ignore it
b) The document may not be properly interpreted as XHTML
c) The document will not be displayed at all
d) Nothing, as the xmlns attribute is optional
True or False
11. XHTML is based on ________, making it stricter and more structured than HTML.
12. In XHTML, all attribute values must be enclosed in ________.
13. The DOCTYPE declaration is placed at the ________ of an XHTML document.
14. XHTML ensures better compatibility with ________ devices.
15. The correct MIME type for serving XHTML documents is ________.
16. Explain why XHTML requires self-closing tags for empty elements.
17. How does XHTML improve accessibility and web standards compliance?
18. What are the main differences between XHTML Strict, Transitional, and Frameset?
19. Why must XHTML documents be well-formed?
20. Write a simple XHTML document structure with a heading and a paragraph.