Test on HTML and CSS Fundamentals

HTML and CSS Fundamentals: Comprehensive Student Guide

Question 1 of 50%

The `target="blank"` attribute is used to create links that navigate to a different section within the same HTML document.

Test: HTML, CSS

20 questions

Question 1: The `target="blank"` attribute is used to create links that navigate to a different section within the same HTML document.

A. Ano

B. Ne

Explanation: The study materials state that the `target="blank"` attribute is used for "External links – another website". Links within a document use an `id` and `href="#someid"` to navigate to a specific section.

Question 2: The `<div>` tag is considered a fundamental HTML form element for user input according to the study materials.

A. Ano

B. Ne

Explanation: The `<div>` tag is listed as an element with no meaning, primarily used for CSS styling, and is not included in the list of HTML form elements. Form elements include tags like `<form>`, `<input>`, and `<textarea>`.

Question 3: According to the study materials, what does HTML semantics primarily focus on?

A. Defining the visual presentation of elements.

B. Conveying the meaning of content, especially for computers.

C. Creating interactive functionalities on web pages.

D. Specifying browser compatibility rules for elements.

Explanation: The study materials state under 'HTML Semantics' that it focuses on the 'Meaning of a content' and specifies 'For computers'. It also mentions 'Emphasis on semantics' when discussing HTML in general, and lists structural elements like Main, Section, and Article as part of 'HTML basic semantics'.

Question 4: Which of the following elements are typically found within the `<head>` section of an HTML document, according to the provided study materials?

A. <p>

B. <title>

C. <link>

D. <body>

Explanation: The study materials explicitly list <title>, <script>, <style>, <link>, and <meta> as elements found within the <head> section. The <p> element is for paragraphs within the body, and the <body> element contains all visible content, not information about the page itself for browsers or search engines.

Question 5: CSS selectors include tag name, class, ID, and pseudo-class selectors like :hover.

A. Ano

B. Ne

Explanation: The study materials explicitly list tag name (e.g., p), class (e.g., .test), ID (e.g., #identifier), and pseudo-class selectors (e.g., :hover) as types of CSS selectors.