Alien head


Description: XHTML Quiz
Number of Questions: 10
Created by:
Tags: xhtml

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

  1. WIDTH="80"

  2. width="80"

  3. width=80

  4. Width=80

Answer: 2

All elements in XHTML must be closed

  1. True

  2. False

Answer: 1

The DOCTYPE declaration has no closing tag

  1. True

  2. False

Answer: 1

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

Answer: 2

What XHTML code is "well-formed"?

  1. A short paragraph

  2. A short paragraph

  3. A short paragraph

Answer: 2

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

  1. Hello World!
  2. Hello World!
  3. Hello World!
Answer: 1

What are the different DTDs in XHTML?

  1. Strict, Transitional, Loose, Frameset

  2. Strict, Transitional, Frameset

  3. Strict, Transitional, Loose

Answer: 2

What is the most common XHTML DTD?

  1. Loose

  2. Normal

  3. Transitional

  4. Frameset

Answer: 3

Do all XHTML documents require a doctype?

  1. Yes

  2. No

Answer: 1

All XHTML tags and attributes must be in lower case

  1. True

  2. False

Answer: 1
+ View questions