XHTML Quiz

XHTML Quiz

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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

  1. WIDTH="80"
  2. width="80"
  3. width=80
  4. Width=80
Question 2 Multiple Choice (Single Answer)

All elements in XHTML must be closed

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

The DOCTYPE declaration has no closing tag

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

What XHTML code is "well-formed"?

  1. <p>A short paragraph</p>
  2. <p>A short paragraph</p>
  3. <p>A short paragraph</P>
Question 6 Multiple Choice (Single Answer)

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

  1. <div lang="en" xml:lang="en">Hello World!
  2. <div xml:language="en">Hello World!
  3. <div language="en">Hello World!
Question 7 Multiple Choice (Single Answer)

What are the different DTDs in XHTML?

  1. Strict, Transitional, Loose, Frameset
  2. Strict, Transitional, Frameset
  3. Strict, Transitional, Loose
Question 8 Multiple Choice (Single Answer)

What is the most common XHTML DTD?

  1. Loose
  2. Normal
  3. Transitional
  4. Frameset
Question 9 Multiple Choice (Single Answer)

Do all XHTML documents require a doctype?

  1. Yes
  2. No
Question 10 Multiple Choice (Single Answer)

All XHTML tags and attributes must be in lower case

  1. True
  2. False