Deck 9: Working with XHTML
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/139
Play
Full screen (f)
Deck 9: Working with XHTML
1
As the Web has branched out in recent years,it has grown to include smaller,handheld devices,which limit the size of the software that can be run on them.
True
2
Browsers usually accept HTML documents that violate HTML syntax as long as the violation is severe.
False
3
One way to allow a link to be opened in the same window but still retain valid code under XMTML strict is to use JavaScript to open the link.
False
4
To specify which DTD is used by the XHTML document,you add a DOCTYPE declaration directly after the XML prolog.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
5
XHTML allows some instances of attribute minimization.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
6
All browsers recognize and understand CDATA sections.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
7
When a validator reports that the end tag for an element is missing,it always means that a two-sided tag is missing an end tag.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
8
In HTML,browsers usually reject documents that violate HTML syntax.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
9
Deprecated attributes are allowed under the strict DTD.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
10
SGML is device-independent and system-independent.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
11
When you write XHTML code,it's important to be familiar with all of the rules of proper syntax.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
12
Once you have a document that passes the validation test,you may want to make a note of this on your Web page.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
13
While powerful,SGML is also quite simple to learn and apply.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
14
HTML cannot be applied inconsistently,because of strict DTDs required by the language.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
15
By making allowances for inconsistently applied HTML code,the source code for the browser must be larger and more complex to deal with all contingencies.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
16
The namespace id for XHTML looks like a url,and is treated as one by the XML parser.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
17
XML parsers reject any XML documents that are not well formed.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
18
An XML document that employs the correct syntax is known as a well-made document.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
19
Various Web browsers developed their own unique flavors of HTML to provide customers with new and useful features not available with other browsers.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
20
Some XML documents must also include a single root element that contains all other elements.
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
21
Microsoft introduced the ____ element into its browser when it saw a need for internal frames.
A) frame
B) frameset
C) iframe
D) exframe
A) frame
B) frameset
C) iframe
D) exframe
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
22
According to the rules for well-formed XML,empty elements must be terminated._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
23
The strict DTD prohibits certain elements from being used as parent elements within other elements._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
24
The DOCTYPE is added directly after the XML prolog._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
25
The path to a cleaner version of HTML involved rewriting HTML in terms of ____.
A) CML
B) SGML
C) XML
D) Java
A) CML
B) SGML
C) XML
D) Java
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
26
The strict DTD is best used for older documents that contain deprecated features._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
27
To specify what the correct content and structure is for a document,the developers of an XML-based language can create a collection of rules called the schema._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
28
A namespace id can be any string of characters so long as it uniquely identifies the document namespace._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
29
SGML can be used on ____.
A) Windows
B) Linux
C) Mac OS X
D) all the above
A) Windows
B) Linux
C) Mac OS X
D) all the above
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
30
When converting old HTML code to XHTML,make sure that all element and attribute names are in uppercase letters._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
31
HTML is limited to those organizations that can afford the cost and overhead of maintaining the complex environments for programming in that language._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
32
By browsers making allowances for inconsistently applied HTML,source code for the browser becomes ____.
A) simple
B) easier
C) complex
D) extreme
A) simple
B) easier
C) complex
D) extreme
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
33
The most widely supported version of XHTML is XHTML 1.0._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
34
The following HTML code would likely be interpreted correctly by a browser even though the colspan attribute value is not enclosed in brackets: Heading._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
35
By adding the DOCTYPE declaration and XML:L namespace,you can test whether the document is well formed and valid._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
36
HTML has been used to create several markup languages,including MathML and CML._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
37
Unlike SGML,XML can be used to design markup languages for different types of structured documents._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
38
The frameset DTD is best used for documents that need to strictly conform to the latest XHTML standards._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
39
____ is a markup language introduced in 1980 that describes the structure and content of documents or of any type of information that is readable by machines.
A) SGML
B) HTML
C) CML
D) XHTML
A) SGML
B) HTML
C) CML
D) XHTML
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
40
To test a page created in XHTML,you can use the validator provided by W3C._________________________
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
41
In HTML,which of the following is not an example of attribute minimization?
A) checked
B) value
C) noresize
D) selected
A) checked
B) value
C) noresize
D) selected
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
42
____ is a language like SGML used to create markup languages but without SGML's complexity and size.
A) XML
B) XHTML
C) HTML
D) XSL
A) XML
B) XHTML
C) HTML
D) XSL
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
43
Some DTDs represent older versions of ____.
A) XML
B) SGML
C) HTML
D) XHTML
A) XML
B) SGML
C) HTML
D) XHTML
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
44
When converting old HTML code to XHTML,make sure that attribute values are placed in ____.
A) quotes
B) parentheses
C) brackets
D) commas
A) quotes
B) parentheses
C) brackets
D) commas
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
45
XHTML version _____ is still in the development process.
A) 2.0
B) 3.0
C) 2.1
D) 5
A) 2.0
B) 3.0
C) 2.1
D) 5
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
46
The ____ DTD does not allow any presentational features or deprecated HTML elements and attributes.
A) transitional
B) frameset
C) strict
D) basic
A) transitional
B) frameset
C) strict
D) basic
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
47
____ DTDs are most commonly associated with XHTML 1.0.
A) Three
B) Two
C) Four
D) Six
A) Three
B) Two
C) Four
D) Six
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
48
In HTML,which of the following is an example of attribute minimization?
A) unchecked
B) multiple
C) nonresize
D) writeonly
A) unchecked
B) multiple
C) nonresize
D) writeonly
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
49
A ____ can also indicate the encoding used in an XHTML document.
A) meta element
B) MIME element
C) title element
D) anchor element
A) meta element
B) MIME element
C) title element
D) anchor element
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
50
Each XML document is based on a(n)____ set.
A) indexed
B) binary
C) unary
D) character
A) indexed
B) binary
C) unary
D) character
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
51
Documents written in MathML and CML are ____ documents.
A) XHTML
B) HTML
C) XSL
D) XML
A) XHTML
B) HTML
C) XSL
D) XML
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
52
The first line of an XHTML file contains a statement called a prolog that indicates the document adheres to the syntax rules of XML.
A) second
B) last
C) first
D) third
A) second
B) last
C) first
D) third
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
53
____ should be used for encoding unless you are using special international characters.
A) UTF-6
B) UTF-32
C) UTF-8
D) UTF-60
A) UTF-6
B) UTF-32
C) UTF-8
D) UTF-60
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
54
The specifications for XHTML 1.0 most closely match those for HTML _____.
A) 2.0
B) 3.0
C) 4.0
D) 5.0
A) 2.0
B) 3.0
C) 4.0
D) 5.0
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
55
The most widely supported version of XHTML is XHTML ____.
A) 1.0
B) Basic
C) 1.1
D) 2.0
A) 1.0
B) Basic
C) 1.1
D) 2.0
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
56
To specify what the correct content and structure for a document should be,the document developers create a collection of rules called the ____.
A) XSL
B) parser
C) DTD
D) schema
A) XSL
B) parser
C) DTD
D) schema
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
57
XML documents must be evaluated with an XML ____.
A) compiler
B) executor
C) parser
D) matrix
A) compiler
B) executor
C) parser
D) matrix
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
58
The ____ DTD includes the deprecated elements and attributes of HTML.
A) presentational
B) transitional
C) deprecated
D) strict
A) presentational
B) transitional
C) deprecated
D) strict
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
59
As with HTML and XML,the W3C maintains the specifications for ______.
A) XHTML
B) HTML
C) XML
D) SGML
A) XHTML
B) HTML
C) XML
D) SGML
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
60
The ____ DTD supports many of the presentational features of HTML.
A) presentational
B) strict
C) transitional
D) deprecated
A) presentational
B) strict
C) transitional
D) deprecated
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
61
The pre element is prohibited from having ____ as a child element,in the strict DTD.
A) sub
B) sup
C) img
D) all of the above
A) sub
B) sup
C) img
D) all of the above
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
62
The code Hi would not be considered valid code under the ____ DTD.
A) transitional
B) frameset
C) strict
D) main
A) transitional
B) frameset
C) strict
D) main
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
63
Which attribute(s)are required for the img tag?
A) alt
B) src
C) a and b
D) none of the above
A) alt
B) src
C) a and b
D) none of the above
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
64

In the syntax of the DOCTYPE declaration for a general XML document,the type attribute identifies the type of ____.
A) schema
B) root
C) DTD
D) index
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
65

In the figure above,the item numbered 1 indicates the ____.
A) XML parser
B) DTD
C) XML prolog
D) XML application
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
66

In the figure above,the item numbered 1 indicates the ____.
A) XML parser
B) DTD declaration
C) DTD id
D) XML prolog
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
67

In the figure above,the item numbered 2 indicates the ____.
A) XML parser
B) DTD
C) XML prolog
D) XML application
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
68
The target attribute is a prohibited attribute of the ____ element,in the strict DTD.
A) body
B) br
C) caption
D) a
A) body
B) br
C) caption
D) a
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
69
The alt attribute is a required attribute of the ____ element.
A) style
B) param
C) base
D) img
A) style
B) param
C) base
D) img
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
70
The bgcolor attribute is a prohibited attribute of the ____ element,in the strict DTD.
A) ul
B) br
C) tr
D) a
A) ul
B) br
C) tr
D) a
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
71
Any XHTML document that omits the ____ element is rejected.
A) sub
B) p
C) title
D) none of the above
A) sub
B) p
C) title
D) none of the above
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
72
The rules for well-formed and valid documents reflect ____ practice.
A) good coding
B) active design
C) html
D) parser
A) good coding
B) active design
C) html
D) parser
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
73
The body element is prohibited from having ____ as a child element,in the strict DTD.
A) img
B) textarea
C) input
D) all the above
A) img
B) textarea
C) input
D) all the above
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
74
The clear attribute is a prohibited attribute of the ____ element,in the strict DTD.
A) body
B) br
C) caption
D) a
A) body
B) br
C) caption
D) a
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
75

In the figure above,the item numbered 2 indicates the ____.
A) XML parser
B) DTD declaration
C) DTD id
D) XML prolog
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
76
The ____ DTD does not support frames or inline frames.
A) frameset
B) basic
C) strict
D) main
A) frameset
B) basic
C) strict
D) main
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
77
The action attribute is a required attribute of the ____ element.
A) bdo
B) form
C) area
D) textarea
A) bdo
B) form
C) area
D) textarea
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following are allowed under the strict DTD?
A) basefont
B) menu
C) u
D) iframe
A) basefont
B) menu
C) u
D) iframe
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
79
_______ attributes define how browsers should render the associated elements in Web pages.
A) Prohibited
B) Presentational
C) Directional
D) Specific
A) Prohibited
B) Presentational
C) Directional
D) Specific
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck
80
The strict DTD requires the use of the ____ attribute in place of the name attribute.
A) caption
B) id
C) object
D) link
A) caption
B) id
C) object
D) link
Unlock Deck
Unlock for access to all 139 flashcards in this deck.
Unlock Deck
k this deck