Html miscellaneous
- XML is a markup language where documents must be marked up correctly.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
XML is markup language while XHTML is extensible hypertext version of markup language. XHTML is HTML defined as an XML application. XHTML is stricter than HTML.
- __________ 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.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
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.
- Which of the following encoding an XML parser assumes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Basically parsers are used in softwares and they convert user data into machine data in short in memory form to use. In XML, parser is used to read XML. If an XML document lacks encoding specification, an XML parser assumes that the encoding is UTF-8 or UTF-16.
- The root element of an XHTML document must be html, and must contain an __________ attribute to associate it with the XHTML namespace.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The xmlns attribute specifies the xml namespace for a document. It is manadatory in XHTML while in HTML5 it is optional. The root element of an XHTML document must be html, and must contain an xmlns atrribute to associate it with the XHTML namespace.
- Which of the following statement is true?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
HTML is hypertext markup language. There are many rules and regulations in HTML for attribute specification. HTML is case in-sensitive and thus we can write attribute name in either uppercase or lowercase, none of it is going to make difference. There is nothing like that atrribute name should be minimized, we can write attribute name as long as and as short as we want. The only rule for attribute name is that it should be in quoted form.