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

In the interactive storytelling platform "Twine", authors create non-linear narratives where readers can navigate through different paths and endings. What is the name of the file format used in Twine?

  1. JSON

  2. HTML

  3. XML

  4. TwineScript

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

TwineScript is the file format used in Twine to create interactive stories and games.

Multiple choice

What is the most common markup language used to create web pages?

  1. HTML

  2. CSS

  3. JavaScript

  4. PHP

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

HTML (Hypertext Markup Language) is the standard markup language for creating web pages.

Multiple choice

What is the purpose of CSS?

  1. To define the structure of a web page

  2. To define the appearance of a web page

  3. To define the behavior of a web page

  4. To define the content of a web page

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

CSS (Cascading Style Sheets) is used to define the appearance of web pages, including the layout, fonts, and colors.

Multiple choice

What is the purpose of JavaScript?

  1. To define the structure of a web page

  2. To define the appearance of a web page

  3. To define the behavior of a web page

  4. To define the content of a web page

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

JavaScript is a scripting language used to define the behavior of web pages, such as responding to user input, performing calculations, and creating dynamic content.

Multiple choice

Which of the following is NOT a common type of cross-site scripting (XSS) vulnerability?

  1. Reflected XSS

  2. Stored XSS

  3. DOM-based XSS

  4. Self-XSS

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

Self-XSS is not a common type of XSS vulnerability. It occurs when a script is executed by the victim's browser without any interaction from the attacker.

Multiple choice

Which metadata element is typically used to describe the author of a digital resource?

  1. Title

  2. Creator

  3. Subject

  4. Description

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

The 'Creator' metadata element is commonly used to identify the individual or organization responsible for creating the digital resource.

Multiple choice

Which metadata standard is commonly used for describing cultural heritage resources?

  1. Metadata Object Description Schema (MODS)

  2. Resource Description Framework (RDF)

  3. Extensible Markup Language (XML)

  4. Hypertext Transfer Protocol (HTTP)

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

The Metadata Object Description Schema (MODS) is a widely adopted standard for describing cultural heritage resources. It provides a comprehensive set of metadata elements to capture information about cultural objects, such as their title, creator, physical characteristics, and cultural context.

Multiple choice

Which metadata element is typically used to describe the language of a digital resource?

  1. Title

  2. Creator

  3. Language

  4. Description

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

The 'Language' metadata element is commonly used to identify the language in which a digital resource is created or expressed.

Multiple choice

Which HTML element is used to define the main content of a web page?

  1. <head>

  2. <body>

  3. <title>

  4. <meta>

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

The `` element contains the main content of a web page, including text, images, and other elements.

Multiple choice

What is the correct syntax for a CSS rule that sets the font-size of an element?

  1. font-size: 12px;

  2. font: 12px;

  3. size: 12px;

  4. text-size: 12px;

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

The font-size property is used to set the font size of an element, and the value can be specified in pixels (px), ems, or percentages.

Multiple choice

What is the purpose of the document.querySelector() method in JavaScript?

  1. To select the first element that matches a specified CSS selector

  2. To select all elements that match a specified CSS selector

  3. To create a new element in the DOM

  4. To remove an element from the DOM

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

The document.querySelector() method returns the first element that matches a specified CSS selector.

Multiple choice

Which HTML element is used to create a hyperlink?

  1. <a>

  2. <p>

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

The <a> element is used to create a hyperlink, which allows users to navigate to another web page or section of the same page.

Multiple choice

What is the purpose of using a meta description tag in HTML?

  1. To provide a brief summary of the web page's content

  2. To specify the author of the web page

  3. To define the keywords related to the web page

  4. To set the title of the web page

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

The meta description tag is used to provide a brief summary of the web page's content, which is often displayed in search engine results and can influence click-through rates.

Multiple choice

Which of the following is a web accessibility guideline that recommends providing alternative text for images?

  1. WCAG 2.0

  2. ARIA

  3. WAI-ARIA

  4. HTML5

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

WCAG 2.0 is a web accessibility guideline that recommends providing alternative text for images. This allows people with visual impairments to understand the content of images.

Multiple choice

Which of the following is a web accessibility guideline that recommends providing captions for videos?

  1. WCAG 2.0

  2. ARIA

  3. WAI-ARIA

  4. HTML5

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

WCAG 2.0 is a web accessibility guideline that recommends providing captions for videos. This allows people with hearing impairments to access the content of videos.