Alien head

XHTML Quiz

Description: XHTML Quiz
Number of Questions: 10
Created by:
Tags: xhtml
Attempted 0/10 Correct 0 Score 0

What is the correct XHTML for an attribute and its value?

  1. WIDTH="80"

  2. width="80"

  3. width=80

  4. Width=80


Correct Option: B

All elements in XHTML must be closed

  1. True

  2. False


Correct Option: A

The DOCTYPE declaration has no closing tag

  1. True

  2. False


Correct Option: A

Which elements are mandatory in an XHTML document?

  1. doctype, html and body

  2. doctype, html, head, body, and title

  3. doctype, html, head, and body


Correct Option: B

What XHTML code is "well-formed"?

  1. A short paragraph

  2. A short paragraph

  3. A short paragraph


Correct Option: B

Which of the following is the right use of the lang attribute?

  1. Hello World!
  2. Hello World!
  3. Hello World!

Correct Option: A

What are the different DTDs in XHTML?

  1. Strict, Transitional, Loose, Frameset

  2. Strict, Transitional, Frameset

  3. Strict, Transitional, Loose


Correct Option: B

What is the most common XHTML DTD?

  1. Loose

  2. Normal

  3. Transitional

  4. Frameset


Correct Option: C

Do all XHTML documents require a doctype?

  1. Yes

  2. No


Correct Option: A

All XHTML tags and attributes must be in lower case

  1. True

  2. False


Correct Option: A
+ View questions