Home »
MCQs
XHTML Multiple-Choice Questions (MCQs)
XHTML is an extended version of HTML (HyperText Markup Language), or we can say it is a more XML-based version of HTML. XHTML is a part of the family of XML markup languages.
XHTML MCQs: This section contains multiple-choice questions and answers on the various topics of XHTML. Practice these MCQs to test and enhance your skills on XHTML.
List of XHTML MCQs
1. XHTML stands for ____?
- Extension hyper markup language
- Extension of Hypertext Markup Language.
- Extensible Hypertext Markup Language.
- XML Hypertext Markup Language.
Answer: C) Extensible Hypertext Markup Language.
Explanation:
XHTML stands for Extensible Hypertext Markup Language.
Discuss this Question
2. What is SGML?
- Standard Generalized Markup Language
- Stanford Generalized Markup Language
- Standard Global Markup Language
- Stanford Global Markup Language
Answer: A) Standard Generalized Markup Language
Explanation:
SGML stands for Standard Generalized Markup Language.
Discuss this Question
3. Is it necessary to use lowercase for all XHTML elements and attributes?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, it is necessary to use lowercase for all XHTML elements and attributes.Yes, it is necessary to use lowercase for all XHTML elements and attributes.
Discuss this Question
4. All XHTML documents must begin with a DOCTYPE declaration.
- False
- True
Answer: B) True
Explanation:
All XHTML documents must begin with a DOCTYPE declaration.
Discuss this Question
5. With XHTML, can you overlap elements?
- Yes
- No
Answer: B) No
Explanation:
In XHTML, we cannot overlap elements.
Discuss this Question
6. The markup language XHTML is ____.
- case sensitive.
- case In-sensitive.
- None
Answer: A) case sensitive.
Explanation:
The markup language XHTML is case-sensitive.
Discuss this Question
7. Is it necessary to quote the value of XHTML attributes?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, all the values of XHTML attributes must be quoted.
Discuss this Question
8. In XHTML, the id attribute is replaced by the ____ attribute.
- Remains same
- Value
- Name
- Label
Answer: C) Name
Explanation:
In XHTML, the id attribute is replaced by the name attribute.
Discuss this Question
9. In XHTML,<li> and <LI> both are considered as same tags?
- Yes
- No
Answer: B) No
Explanation:
Since XHTML documents must have lowercase there <li> and <LI> will be considered as two different tags.
Discuss this Question
10. Does XML support attribute minimization?
- Yes
- No
Answer: B) No
Explanation:
XML does not support attribute minimization, Attribute-value pairs must be written completely.
Discuss this Question
11. What is DTD?
- Doc type data
- Doc type definition
- Document type data
- Document type definition
Answer: D) Document type definition
Explanation:
DTD stands for Document type definition.
Discuss this Question
12. How many types of DTD does XHTML define?
- 1
- 2
- 3
- 5
Answer: C) 3
Explanation:
The XHTML specification has three Document Type Definitions (DTDs):
- Strict
- Transitional
- Frameset
Discuss this Question
13. If you want to utilize Cascading Style Sheets (CSS) exclusively and avoid writing most XHTML attributes, then which of the following DTD is suggested?
- Strict
- Transitional
- Frameset
Answer: A) Strict
Explanation:
If you want to utilize Cascading Style Sheets (CSS) exclusively and avoid writing most XHTML attributes, then strict DTD is suggested.
Discuss this Question
14. If you intend to use several XHTML characteristics as well as a few Cascading Style Sheet properties, then you should use which of the following DTD.
- Strict
- Transitional
- Frameset
Answer: B) Transitional
Explanation:
If you intend to use several XHTML characteristics as well as a few Cascading Style Sheet properties, then you should use Transitional DTD.
Discuss this Question
15. When you want to divide the browser window into two or more frames using HTML Frames, then which of the following DTDs you should use?
- Strict
- Transitional
- Frameset
Answer: C) Frameset
Explanation:
When you want to divide the browser window into two or more frames using HTML Frames, then Frameset DTD you should use.
Discuss this Question
16. ____ elements are used to mark up tiny sections of text or material within a bigger block of text.
- Block
- Inline
Answer: B) Inline
Explanation:
Inline elements are used to mark up tiny sections of text or material within a bigger block of text.
Discuss this Question
17. ____ elements establish a new line and are used to mark up bigger pieces of information.
- Block
- Inline
Answer: A) Block
Explanation:
Block elements establish a new line and are used to mark up bigger pieces of information.
Discuss this Question
18. Which of the following extensions are used by XHTML?
- .xhtml
- .xml
- .xht
- All of the above
Answer: D) All of the above
Explanation:
.xhtml, .xml, and .xht are the file extensions used by XHTML.
Discuss this Question
19. Which of the following extensions are used by HTML?
- .html
- .htm
- All of the above
Answer: C) All of the above
Explanation:
.html and .htm are the extensions used by HTML.
Discuss this Question
20. Can we add attributes without any quotes in HTML?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, We can add attributes without any quotes in HTML.
Discuss this Question
21. The XHTML attributes can be divided into how many types?
- 5
- 6
- 4
- 3
Answer: D) 3
Explanation:
The XHTML attributes can be divided into 3 types:
- Core Attributes
- Language Attributes
- Microsoft Proprietary Attributes
Discuss this Question