XHTML Interview Questions & Answers
Showing 10 of 37 questions | Page 2
Technical interview questions and answers are important for clearing an XHTML Interview because companies expect candidates to understand the transition from HTML to XHTML, strict syntax rules, document structure, and validation standards. XHTML is still used in legacy systems and is often included in web development interviews to check a candidate’s discipline in writing clean, structured, and standards-compliant code. These questions commonly appear in the technical rounds of companies like TCS, Infosys, Wipro, Cognizant, and Accenture. Whether you are a fresher, a web designer, or a junior developer, understanding XHTML helps you build better web pages and maintain older systems efficiently. This guide covers frequently asked XHTML interview questions with simple, clear explanations to help you improve your web development fundamentals and prepare confidently for campus placement tests and developer interviews.
11. How does HTML differ from XHTML ?
and not
) and elements to be closed (e.g. paragraphs must end with a
).12. Why to type a tags in uppercase, and never bother closing the paragraphs ?
13. Explain the differences between XHTML and HTML
14. Describe the significance of using the DOCTYPE declaration in XHTML
15. What are the key differences between XHTML 1.0 Strict and XHTML 1.0 Transitional
16. How do you handle inline and block-level elements differently in XHTML
typically start on a new line and take up the full width available, while inline elements like and do not start on a new line and only take up as much width as necessary. It’s important to ensure that block-level elements are not placed inside inline elements, as this violates XHTML standards