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

Multiple choice technology
  1. The <head> section

  2. The <body> section

  3. Both the <head> section and the <body> section are correct

  4. none

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JavaScript can be placed in both and sections. The placement affects execution timing - scripts run before page load, scripts run after.

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

External JavaScript files use a .js extension and contain only JavaScript code, not HTML. The tag is used in HTML files to reference external JS files, but the external file itself contains pure JavaScript without any tags.

Multiple choice technology
  1. <!--This is a comment-->

  2. //This is a comment

  3. 'This is a comment

  4. ?this is a comment ?

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JavaScript uses double forward slashes (//) for single-line comments. Option A () is HTML comment syntax, not JavaScript. Options C and D are not valid comment syntax in any language.

Multiple choice technology web 2.0
  1. It is used to indicate ownership of content

  2. It is used to flag inappropriate content

  3. It refers to keyword that users attach to content

  4. It is used to indicate featured content on a website

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A tag is a user-defined keyword or metadata term assigned to a piece of information or media content, facilitating taxonomy and search. It does not indicate ownership, flag inappropriate content, or specify featured website content, which are handled by authorization rules, moderation flags, and administrative settings respectively.

Multiple choice technology web technology
  1. H1

  2. H2

  3. H3

  4. H4

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HTML headings range from H1 to H6, where H1 represents the highest (most important) level and is displayed with the largest font size by default. H6 is the smallest heading level. Each page should typically have only one H1 element.

Multiple choice technology web technology
  1. Syntax

  2. Tags

  3. Dialog

  4. Laws

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To solve this question, the user needs to have basic knowledge of HTML. The user should know that HTML is a markup language that has a defined set of rules for writing valid code.

The correct answer is:

A. Syntax

Option A is the correct answer because the set of rules that govern the structure and format of HTML code is called its syntax. The syntax of HTML follows a specific set of rules that define how elements can be combined to create valid web pages.

Option B is incorrect because tags are the building blocks of HTML elements and are used to define and format content.

Option C is incorrect because dialog is not related to HTML; it is a user interface component that displays content to the user.

Option D is incorrect because HTML does not have laws; it has rules that define the structure and format of valid HTML code.

Therefore, the correct answer is:

The Answer is: A. Syntax

Multiple choice technology web technology
  1. <script>

  2. <strike>

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

The question asks for tags defining 'scripted text', which is a common typographical typo in older HTML quizzes referring to 'subscript' (<sub>) and 'superscript' (<sup>) tags. The `tag defines client-side scripts, and<strike>` defines strikethrough text.

Multiple choice technology web technology
  1. Defines a caption for a fieldset element

  2. Defines a label for an input element

  3. Defines an input control

  4. Defines a searchable index related to a document

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The tag specifically provides a caption or title for a element, grouping related form controls. is for individual inputs, creates controls, and no tag defines a searchable index by default.