Computer Knowledge
Markup and Web Languages
1,492 Questions
Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.
HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility
Markup and Web Languages Questions
-
Yes
-
No
-
XML is not a database, it is a language
-
None of these
B
Correct answer
Explanation
XML cannot be used as database, as it does not contain any database functionality.
-
Title tag
-
Head tag
-
EM tag
-
Form tag
B
Correct answer
Explanation
The Body tag is usually used after Head tag because Head tag is used for Header after header, then comes Body.
-
heading
-
paragraph
-
list
-
all of these
D
Correct answer
Explanation
The heading, paragraph and list, all these are the common elements to describe the webpage.
-
No
-
Yes
-
They are browser dependent.
-
None of these.
B
Correct answer
Explanation
Yet they are case- sensitive. The tags elements in XML are case - sensitive and they are browser independent.
-
One
-
Two
-
Three
-
As many as the memory provides
A
Correct answer
Explanation
An XML document can have only one root element called as document element.
-
Superset of SGML, which is an Extensible Mark-up Language
-
Subset of SGML, which is an Extensible Markup Language
-
Like SGML
-
Either (1) or (3)
B
Correct answer
Explanation
XML (Extensible Markup Language) was designed as a simpler subset of SGML (Standard Generalized Markup Language). While SGML is complex and powerful, XML retains the markup capabilities but with stricter, simpler rules that make it easier to use and process.
-
attributes
-
objects
-
interfaces
-
elements
C
Correct answer
Explanation
In the Document Object Model (DOM), NodeList, Element, and NamedNodeMap are all interfaces - abstract specifications that define the structure and behavior of objects. They are not specific objects themselves, but rather types that objects implement.
-
include the space which is between two double quotes
-
include only spaces and characters
-
include the space between the single quotes
-
include thing like space character and tabs
A
Correct answer
Explanation
The CAPTION tag is used within a TABLE structure to provide a title or description for the table. While TD, TR, and TH are structural elements for table data, rows, and headers, CAPTION specifically serves as a descriptive label for the entire table.
-
It is an extended style sheet language and is used for formatting.
-
It is an extensible style sheet language and is used for editing.
-
It is an extensible style sheet language and is used for formatting.
-
It is an extensible language and is used for formatting.
C
Correct answer
Explanation
XSLT (Extensible Stylesheet Language Transformations) is used to transform XML documents into other formats like HTML, plain text, or different XML structures. The 'extensible' refers to being part of the extensible stylesheet language family, and its primary use is formatting and transforming XML content.
-
<FORM> and <BODY>
-
<BODY> and <HEAD>
-
<TITLE> and <BODY>
-
Only <HEAD>
D
Correct answer
Explanation
The base tag specifies the base URL for all relative URLs in a document. It must be placed in the head section because it affects URL resolution throughout the entire document and must be established before any relative URLs are encountered in the body.
-
more than 30 characters
-
more than 50 characters
-
15 characters or less than it
-
24 characters only
D
Correct answer
Explanation
The deprecated dir (directory list) tag was historically specified to contain only short directory items, limited to 24 characters or less per item. This restriction was part of the original HTML specification for multi-column directory displays, though the tag is now obsolete.
-
It is a descriptive mark-up language.
-
It describes the structure and behaviour of the web document.
-
It is not the standard language of WWW.
-
HTML is a plain text file.
C
Correct answer
Explanation
HTML is indeed the standard markup language of the World Wide Web, making option C's claim that 'it is not the standard language of WWW' a false statement. Since the question asks what is NOT true about HTML, the false statement (C) is the correct answer. Options A, B, and D describe true facts about HTML.
-
This file can be created by using a simple text.
-
This file may or may not have HTM or HTML file extension.
-
This is a text file.
-
None of these
B
Correct answer
Explanation
HTML files require a .html or .htm extension to be properly recognized by browsers and operating systems. Option B's claim that they 'may or may not' have this extension is false, making it the correct answer to 'what is not true'. Options A and C describe true facts about HTML files being plain text files created with text editors.
-
empty tag
-
format tag
-
de-format tag
-
none of these
A
Correct answer
Explanation
The tag in HTML is an empty element, meaning it doesn't require a closing tag and doesn't contain any content. It's a self-closing tag that defines an input field. Format tags like or have opening and closing tags, while empty tags like ,
, and
do not.