Basic Html - Study Mode

[#206] The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.
Correct Answer

(C) xmlns

Explanation

Solution: The xmlns attribute specifies the xml namespace for a document.

[#207] Which of the following encoding an XML parser assumes ?
Correct Answer

(D) both a and b

Explanation

Solution: If an XML document lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.

[#208] __________ is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.
Correct Answer

(A) XHTML+RDF

Explanation

Solution: XHTML+RDFa (Extensible Hypertext Markup Language + Resource Description Framework in attributes) is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents.

[#209] XML is a markup language where documents must be marked up correctly.
Correct Answer

(A) True

Explanation

Solution: XHTML is HTML defined as an XML application. XHTML is stricter than HTML.

[#210] Which one is the correct syntax for specifying media type?
Correct Answer

(A) type "/" subtype *( " " parameter)