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
-
RSS is written in XML-based format elements are case sensitive
-
RSS is written in XML-based format elements must be properly nested
-
RSS is written in XML-based format attribute values must not be quoted
-
RSS is written in XML-based format all elements must have a closing tag
C
Correct answer
Explanation
In XML-based formats like RSS, attribute values MUST always be quoted (single or double quotes). This is a fundamental XML rule. The statement 'attribute values must not be quoted' is false, making it the 'not true' option.
-
Decks
-
Cards
-
Both 1 & 2
-
None of these
A
Correct answer
Explanation
In WML (Wireless Markup Language), a 'deck' is a WML file containing one or more 'cards'. Users navigate between cards within a deck. This was the WAP equivalent of pages. The question asks what WML pages are called - they're called decks (which contain cards).
-
XML
-
Web
-
Web programs
-
Web Services
D
Correct answer
Explanation
Web Services are specifically designed to convert traditional applications into Web-applications by providing standardized interfaces and protocols. XML is just a data format, while 'Web' and 'Web programs' are too vague to be the correct answer.
-
Home Tool Markup Language
-
Hyperlinks and Text Markup Language
-
Hyper Text Markup Language
-
Happy To Markup Language
C
Correct answer
Explanation
HTML stands for Hyper Text Markup Language. This is the universally accepted expansion; the other options are fabricated and therefore incorrect.
-
<heading>
-
<h6>
-
<head>
-
<h1>
D
Correct answer
Explanation
HTML headings use
through tags, where is the largest and most important heading level. is actually the smallest heading, while contains page metadata and is not a valid HTML element.
C
Correct answer
Explanation
The HTML line‑break element is <br>, a void element that inserts a newline. The other tags (,, ``) do not exist in HTML, confirming the stored answer as correct.
A
Correct answer
Explanation
The tag is the correct HTML element for making text bold. While CSS font-weight is preferred for styling, remains valid. , , and are not valid HTML elements.
B
Correct answer
Explanation
The tag is the correct HTML element for italicized text. Though CSS font-style is preferred for styling, remains valid. , , and are not valid HTML elements.
-
<table><head><tfoot>
-
<thead><body><tr>
-
<table><tr><tt>
-
<table><tr><td>
D
Correct answer
Explanation
A complete structure includes the table element itself, a row (), and a cell (). The option provides exactly those tags, while the other choices contain non‑table elements or malformed tags.
-
<img src="background.gif" background />
-
<body background="background.gif">
-
<background img="background.gif">
-
<back-image img="background.gif">
B
Correct answer
Explanation
The background attribute on the element sets a page background image in traditional HTML. Modern practice uses CSS, but this syntax remains valid. and are not real HTML elements.
-
<img src="image.gif" />
-
<image src="image.gif" />
-
<img>image.gif</img>
-
<img href="image.gif />
A
Correct answer
Explanation
The
tag with src attribute is the correct syntax for images. It is a self-closing element ending with /> in XHTML. is not valid, the path goes in src not href, and
does not wrap content.
-
<input type="text" />
-
<textinput type="text" />
-
<input type="textfield" />
-
<textfield>
A
Correct answer
Explanation
The element with type='text' creates a single-line text input field. The type value must be 'text', not 'textfield'. and are not valid HTML elements.
-
Social Engineering.
-
SQL Injection.
-
Log Injection.
-
Reflected XSS.
B
Correct answer
Explanation
SQL Injection involves inserting malicious SQL code into input fields like search boxes. The 'crafted code' causes the database to execute unintended queries, returning excessive data ('massive amount of result') and slowing response time. Social engineering tricks people, log injection targets logs, and reflected XSS requires script execution in responses.
-
Alphabetical order
-
Random. No order.
-
Argument-declaration order
-
Based on the datatype
C
Correct answer
Explanation
Javadoc @param tags should follow the same order as parameters appear in the method or constructor declaration. This convention ensures documentation consistency with the actual code signature, making it easier for developers to correlate documentation with implementation.
-
@param
-
@throws
-
@see
-
@author