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

Multiple choice
  1. start tag of an HTML element

  2. start tag of an HTML program

  3. end tag of an HTML element

  4. none of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. HTML pairs normally come in pairs.

  2. HTML tags are case sensitive.

  3. HTML tags are not used to mark up HTML elements.

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Yes, they represent same elements altogether.

  2. Yes, both are different.

  3. <First> is correct only.

  4. They represent different elements and cannot be replaced.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Name

  2. Validation Text

  3. Required

  4. Validation Rule

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. //

  2. <!__ __>

  3. /* */

  4. #

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. <?php?>

  2. <script language=php> </script>

  3. <? ?>

  4. <?% %>

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. call

  2. include

  3. access

  4. both (1) and (2)

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Xtensible Markup Language

  2. Extensible Markup Language

  3. Extreme Markup Language

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. Flex

  2. OLE Automation

  3. ActiveX control

  4. Applet

  5. Macro processors

Reveal answer Fill a bubble to check yourself
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).

Multiple choice
  1. a fifth generation language

  2. WinZip

  3. URL

  4. hypertext markup language

  5. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice
  1. tool

  2. language

  3. standard

  4. software

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice
  1. li

  2. ol

  3. dl

  4. ul

Reveal answer Fill a bubble to check yourself
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.