Multiple choice xhtml

XHTML will work best if it is Validated ?

  1. It is not always best to validate XHTML

  2. The statment is false

  3. This is a true statement

  4. XHTML is not validated

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

XHTML should be validated to ensure it conforms to its DTD and is properly well-formed. Validation catches syntax errors and ensures compatibility across browsers. Option C correctly states that validation is beneficial.

AI explanation

Validating XHTML against its DTD ensures the markup is well-formed and follows the strict syntax rules XHTML requires (properly closed tags, correct nesting, lowercase element names, etc.), which improves cross-browser rendering consistency and makes the document easier for other tools to parse reliably. Since XHTML was designed as an XML-based language, strict validation is part of getting its benefits, so the statement is true.