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
-
start tag of an HTML element
-
start tag of an HTML program
-
end tag of an HTML element
-
none of these
A
Correct answer
Explanation
In HTML, attributes are always specified in the start tag (opening tag) of an element. End tags (closing tags) cannot contain attributes. This is a fundamental rule of HTML syntax - attributes like id, class, href, src always appear in the opening tag.
-
HTML pairs normally come in pairs.
-
HTML tags are case sensitive.
-
HTML tags are not used to mark up HTML elements.
-
None of these
A
Correct answer
Explanation
HTML tags typically come in pairs - an opening tag and a closing tag. For example,
...
,
...
. While some tags are empty (like
), the standard structure is paired tags. HTML is also case-insensitive, meaning
and
are treated the same.
-
Yes, they represent same elements altogether.
-
Yes, both are different.
-
<First> is correct only.
-
They represent different elements and cannot be replaced.
D
Correct answer
Explanation
HTML is case-sensitive for element names - and represent completely different elements. They are not interchangeable. While some browsers may be lenient, the HTML specification treats them as distinct tags.
-
Name
-
Validation Text
-
Required
-
Validation Rule
A
Correct answer
Explanation
In database validation (such as Microsoft Access), Validation Rule defines the criteria, Validation Text displays the error message when the rule is violated, and Required ensures a field cannot be left empty. The Name property is merely an identifier for the field and does not perform any validation function.
-
NAME
-
CODEBASE
-
PARAM
-
ALIGN
C
Correct answer
Explanation
This tag in applet allows an user to specify applet specific arguments in an HTML page.
B
Correct answer
Explanation
PHP supports three comment styles: single-line comments using // and #, and multi-line comments using /* */. The syntax is not a valid PHP comment style - it resembles HTML comments but is incorrect for PHP code.
-
<?php?>
-
<script language=php> </script>
-
<? ?>
-
<?% %>
D
Correct answer
Explanation
PHP supports multiple tag styles: standard , short tags ?>, and script tags . The ASP-style tags <% %> were supported in older PHP versions with asp_tags enabled but were removed in PHP 7.0, making them the most incorrect option among modern PHP installations.
-
call
-
include
-
access
-
both (1) and (2)
B
Correct answer
Explanation
The include() function (and its variants include_once(), require(), require_once()) allows you to insert the contents of one PHP file into another before the server executes it. This enables code reuse and modular design by separating PHP code into multiple files and including them as needed.
-
Xtensible Markup Language
-
Extensible Markup Language
-
Extreme Markup Language
-
None of these
B
Correct answer
Explanation
XML (Extensible Markup Language) is a markup language that defines rules for encoding documents in both human-readable and machine-readable format. The 'X' stands for 'Extensible,' meaning users can define their own tags and document structure. Option A is incorrect because 'Xtensible' is a misspelling.
-
Flex
-
OLE Automation
-
ActiveX control
-
Applet
-
Macro processors
E
Correct answer
Explanation
Macro processors have been used for language expansion (defining new language constructs that can be expressed in terms of existing language components), for systematic text replacements that require decision making, and for text reformatting (e.g. conditional extraction of material from an HTML file).
-
XML namespaces
-
CURIE
-
Web service
-
EBML
-
XHTML
B
Correct answer
Explanation
A CURIE (or Compact URI) defines a generic, abbreviated syntax for expressing Uniform Resource Identifiers (URIs).
-
a fifth generation language
-
WinZip
-
URL
-
hypertext markup language
-
None of these
D
Correct answer
Explanation
As the name suggests, it is a computer language in which markup symbols or codes inserted in files are displayed on a world wide web page.
-
tool
-
language
-
standard
-
software
A
Correct answer
Explanation
The li (list item) tag denotes individual items within both ordered (ol) and unordered (ul) lists. The ol tag defines the ordered list container itself, dl is for definition lists, and ul defines unordered list containers.