Computer Knowledge
Markup and Web Languages
1,701 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
-
the primary command to the user
-
the primary command to the browser
-
the command used in HTML
-
both (1) and (2)
B
Correct answer
Explanation
An element in an HTML tag is the primary command to the browser. HTML elements tell the browser how to display content - whether it's a heading, paragraph, link, or image. The browser interprets these tags and renders the page accordingly. The element is not a command to the user, but instructions for the browser's rendering engine.
-
only in the starting tag
-
only in the ending tag
-
both in starting and ending tag
-
none of the above
-
are those which have a starting and an ending tag
-
only the starting tags
-
only the ending tags
-
none of the above
A
Correct answer
Explanation
Paired tags in HTML are those that require both a starting (opening) and an ending (closing) tag. Examples include
for paragraphs,
for headings, and
for divisions. The opening tag may contain attributes, while the closing tag only contains the tag name with a forward slash. This structure ensures proper nesting and document structure.
-
have both starting and ending tags
-
have only starting tag
-
have only ending tag
-
have a paired tag
-
a set of logical codes
-
a set of tags
-
a set of instructions
-
a set of commands
A
Correct answer
Explanation
HTML tags are indeed logical codes that define the structure and presentation of web content. They are markup elements that browsers interpret to render pages correctly, not physical tags or commands in the traditional sense.
-
the head region
-
the head tags
-
both (1) and (2)
-
none of the above
B
Correct answer
Explanation
The title tag must be placed within the head section of an HTML document. The head tags contain meta-information about the document, including the title that appears in browser tabs.
-
I, II, III
-
i, ii, iii
-
1, 11, 111
-
none of these
A
Correct answer
Explanation
The ol tag with type='I' creates an ordered list using uppercase Roman numerals (I, II, III, IV, etc.). This is standard HTML behavior for Roman numeral numbering.
-
li, dd, dt
-
ol, ul, dl
-
ol, dt, dd
-
ul, li, dt
B
Correct answer
Explanation
HTML has three main list types: ordered lists (ol) for numbered items, unordered lists (ul) for bulleted items, and definition lists (dl) for term-description pairs. The other options mix individual tags with container tags incorrectly.
-
used to type the text
-
used to design the text file
-
used to build web pages
-
used to put the text file in the notepad file
C
Correct answer
Explanation
HTML is specifically designed for building web pages - it creates the structure and content of web documents. It's not for typing text, designing text files in general, or working with notepad specifically.
-
<dl> and </dl>
-
<dl> and </dl> and <dt> and </dt>
-
<dl> and <dt>
-
<dl>,<dt>, <dd> and </dl>
D
Correct answer
Explanation
Definition lists require three tags working together: dl (container), dt (definition term), and dd (definition description/data). The dl tag wraps the entire list, with dt-dd pairs inside for each term and its definition.
-
tag
-
element
-
attribute
-
command
A
Correct answer
Explanation
A tag is the fundamental unit of markup language that provides instructions to browsers. For example, is a tag that makes text bold. Option A is correct. An element (B) typically includes both opening and closing tags plus content, while an attribute (C) provides additional information within a tag.
-
tag
-
attribute
-
element
-
value
B
Correct answer
Explanation
An attribute is a keyword that provides additional information about an element and is placed within the opening tag after the tag name, separated by a space. Option B is correct. Tags (A) are the main markup units, elements (C) include tags plus content, and values (D) are assigned to attributes.
-
Tags
-
Elements
-
Text
-
Comments
D
Correct answer
Explanation
Comments in HTML (and programming languages) are text notes that are ignored by browsers when rendering the page. They are written for developers to read. Option D is correct. Tags (A), elements (B), and text (C) are all processed and displayed by browsers.
A
Correct answer
Explanation
Option A shows the correct syntax with proper closing tags: ------ . Each opening tag has a corresponding closing tag in the correct order. Option B has incorrect closing tags, while options C and D only show opening or closing tags without proper pairing.
-
Cross-site scripting vulnerability may be used by attackers to bypass access controls.
-
The non-persistent XSS is used to provide data by a web client, most commonly in HTTP query parameters or in HTML form submissions.
-
XSS makes enable attackers to inject client-side script into Web pages viewed by other users.
-
All of the above
-
Both (2) and (3)
D
Correct answer
Explanation
These are the correct statements about XSS (Cross Side Scripting).