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
C
Correct answer
Explanation
The
tag is the correct HTML element for inserting line breaks. It is a self-closing tag that creates a line break without starting a new paragraph. The other options (, , ) are not valid HTML tags.
-
<background>yellow</background>
-
<body background="yellow">
-
<body style="background-color:yellow">
-
<color = "yellow">
C
Correct answer
Explanation
CSS is the correct way to style HTML elements including background colors. Option C uses inline CSS with the style attribute and background-color property, which is valid. Options A and D use non-existent tags. Option B uses the deprecated HTML attribute approach that should be replaced with CSS.
-
<bold>
-
<bld>
-
-
<text="bold">
C
Correct answer
Explanation
The tag is the correct HTML element for making text bold. It is a semantic tag indicating bold text rendering. Options A and B use non-existent tags. Option D is incorrect HTML syntax.
-
-
<italic>
-
<text="italic>
-
<ui>
A
Correct answer
Explanation
The tag is the correct HTML element for making text italic. It is a standard HTML tag for italic text rendering. Option B uses a non-existent tag. Options C and D are incorrect HTML syntax.
C
Correct answer
Explanation
HTTPService uses GET as the default method when no method is explicitly specified. POST, PUT, HEAD, and DELETE must be configured through the method property. This default follows standard REST conventions for read operations.
-
Hyperlinks
-
Named anchors
-
Reference entities
-
None of the above
B
Correct answer
Explanation
Named anchors (using <a name="label"> or </a><a href="#label">) are used to create links to specific sections within the same HTML document, making them the primary mechanism for implementing a table of contents.
-
‘This is a blockquote’ will be underlined
-
‘This is a blockquote’ will be italicized
-
‘This is a blockquote’ will be made bold
-
‘This is a blockquote’ will appear with white spaces before and after it.
D
Correct answer
Explanation
The HTML blockquote tag is used to mark block quotations. By default, browsers render blockquoted text with vertical margins (white space) above and below the content, plus left indentation to visually separate it from surrounding text. The text itself is not underlined, italicized, or made bold by default; the distinctive feature is the spacing and indentation that creates visual separation.
-
noframes
-
iframe
-
noframesupport
-
None of the above
A
Correct answer
Explanation
The HTML tag is used to provide fallback content for browsers that do not support framesets. The tag embeds inline frames, while `` is a non-existent, invalid HTML tag.
-
To define title of the HTML document
-
To instruct browser where to find stylesheets, metadata etc
-
To show additional information about an element as a tooltip text when the mouse moves over it
-
None of the above
C
Correct answer
Explanation
The title attribute provides additional information about an HTML element that appears as a tooltip when users hover their mouse over it. It's not used for defining the document title (that's ) or for linking stylesheets (that's ). This is a fundamental HTML attribute for improving user experience with contextual hints.
-
toggle
-
label
-
caption
-
None of the above
B
Correct answer
Explanation
The tag associates text with a form control, allowing users to click the text to toggle checkboxes or radio buttons. This improves usability and accessibility - clicking anywhere on the label activates the control. The 'toggle' attribute doesn't exist in HTML, and is for table titles.
-
POST allows users to bookmark URLs with parameters.
-
The POST method should not be used when large amount of data needs to be transferred.
-
POST allows secure data transmission over the http method.
-
POST method sends data in the body of the request.
D
Correct answer
Explanation
The POST method sends data in the body of the HTTP request, not in the URL like GET. This allows larger data transfers and keeps parameters out of the browser history. However, POST itself is not inherently secure without HTTPS.
-
The overall structure of the XML message
-
The conventions representing the remote procedure call in the XML message
-
Both
-
None
C
Correct answer
Explanation
SOAP defines the overall XML message structure, including its envelope, header, and body components. It also specifies conventions for representing remote procedure calls and responses within the message. Consequently, both functions are essential parts of the SOAP specification, making other options incomplete.
-
Digitally encrypt an XML document
-
Determine if two XML documents are logically equivalent
-
Digitally decrypt an XML document
-
Digitally sign an XML documents
B
Correct answer
Explanation
Canonical XML is a W3C specification that defines a standardized form of XML documents to enable logical equivalence comparison. Two XML documents with different formatting/whitespace but identical logical content produce the same canonical form, allowing equivalence testing. It is NOT for encryption or signing.
-
Global schema types must be referenced by the type attribute
-
Global schema elements must be referenced by the type attribute
-
Global schema types must be referenced by the element attribute
-
Global schema elements must be referenced by the element attribute
A,D
Correct answer
Explanation
In WSDL 1.1, global schema types are referenced using the 'type' attribute in part elements, while global schema elements are referenced using the 'element' attribute. Mixing these (using 'element' for types or 'type' for elements) is incorrect.
-
Multiple word names must be separated with an underscore
-
Names must be 10 or less characters
-
Names must contain at least 1 alpha character in any position
-
Names must be lower case
C
Correct answer
Explanation
COBOL requires user-defined names to contain at least one alphabetic character (A-Z or a-z) in any position. Names can be up to 30 characters (not 10), can be mixed case (not required lowercase), and multiple-word names typically use hyphens not underscores in COBOL convention.