Review for Module X12c XHTML Prolog and Head Entities ------------------------------- OBJECTIVES ---------- a. Discuss the purpose of the prolog and head portions of an XHTML file. b. Define doctypes and identify their different uses c. Define the purpose of meta information in your XHTML document d. Declare an encoding type for your document QUESTIONS --------- 1. What is the purpose of the prolog of an XHTML file? [a1] 2. What is the purpose of the head portion of an XHTML file? [a2] 3. What information is made available in the doctype statement? [b1] 4. What is information is made available in a Document Type Definition? [b2] 5. What are the general purposes of meta tags in an XHTML document? [c1] 6. Name the two main types of meta tags. [c2] 7. Name two types of HTTP-related information that can be put in meta tags. [c3] 8. Name at least two types of general information that can be put in meta tags. [c4] 9. What are two ways to declare an encoding type for your document? [d1] 10. Write an example XML tag encoding type declaration.[d2] 11. Write an example meta tag encoding type declaration.[d3] ANSWERS ------- 1. The prolog specifies the version of XML used, the character encoding, and the location of the document type definition. [X12cA1s] 2. The purpose of the head is to provide a place for preparation before a page is displayed [X12cA2s] 3. The name of the root element, the public or system status, the complete definition of the document type, and the URI of the formal Document Type Definition. [X12cB1s] 4. The DTD contains a machine-readable description of every element in a particular type of document (in this case, XHTML) and the syntax or grammar for building them into a document. [X12cB2s] 5. To let coders do a wide range of "behind the scenes" tasks [X12cC1s] 6. Those that provide HTTP-related information, and those with free-form information. [X12cC2s] 7. Content type, and refresh [X12cC3s] 8. Author, keywords, or description [X12cC4s] 9. In the XML tag, or in a meta tag [X12cD1s] 10. [X12cD2s] 11. [X12cD3s]