XML

Workshop

The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1.

What is the relationship between HTML and XHTML?

2.

How do XHTML attributes differ from typical HTML attributes?

3.

What is the root element of XHTML documents?

Quiz Answers

1.

XHTML is an XML-based markup language that carries out the functionality of HTML in the spirit of XML. More specifically, XHTML is a version of HTML 4.0 that plays by the more rigid rules of XML.

2.

Attributes in XHTML cannot be used without a value, and all XHTML attribute values must appear within quotes.

3.

The root element of XHTML documents is html, which is the same root element used in HTML documents.

Exercises

1.

Using the skeleton.xhtml document as a template, create an XHTML document for a personal web page. A good example of a personal web page is an XHTML document that stores your resume. After creating the XHTML document, use the W3C Validator to validate the document.

2.

Find an existing HTML document and convert it to XHTML using the list of conversion steps presented in this tutorial. It's up to you whether you convert the document entirely by hand or take advantage of an automated tool, such as HTML Tidy.