curriculum/challenges/english/blocks/quiz-basic-html/66df3b712c41c499e9d31e5b.md
To pass the quiz, you must correctly answer at least 18 of the 20 questions below.
How does the loop attribute work inside the audio element?
It allows the audio element to synchronize playback with other multimedia elements on the webpage.
It adjusts the pitch and tone of the audio.
It triggers the audio element to stop and restart playback in a random sequence.
It starts the audio again once it is finished.
What is a void element in HTML?
An element used to embed videos on the screen.
An element for displaying lists.
An element used for embedding sound in to the document.
An element without any content or an end tag.
Which of the following is a correct value for the id attribute?
id="main@content"
id="main content"
id="main~content"
id="main-content"
How does target="_parent" work?
It opens a link in a new browsing context.
It specifies the position within the linked document where the browser should scroll to after clicking the link.
It redirects the user to a different website specified in the href attribute.
It opens a link in the parent of the current context.
What is the difference between a boolean and regular attribute?
Boolean attributes can only be used with checkboxes, while regular attribute are used with radio buttons.
Regular attributes are always required for images, while boolean attributes are optional.
Boolean attributes must always have a value assigned to them, while regular attributes do not need values assigned to them.
A boolean attribute can be present or absent, while a regular attribute always has a specified value.
Which element is used to link scripts to your HTML file?
img
ul
h2
script
What is an HTML boilerplate?
A special tool used by web developers to add watermarks to documents.
A type of markup language.
A plugin that automatically generates "lorem ipsum" text on the page.
A template that includes all of the essential information needed for an HTML document.
Which attribute applies a unique identifier to an HTML element?
class
href
action
id
What is an HTML entity (character reference)?
A graphical representation of a character in HTML.
A special formatting tag used in HTML.
An image used to represent a character in web design.
A set of characters used to represent a reserved character in HTML.
What is the purpose of the audio element?
It is used to allow users to record their voice directly on a webpage.
It is used to style audio and video elements on the page.
It is used to make text on a webpage audible when clicked.
It is used to add audio to the HTML document.
Which of the following is NOT an example of an HTML element?
img
h1
link
byte
What is the role of the target attribute inside anchor elements?
It defines the color of the link when it is hovered over by the user.
It specifies the position within the linked document where the browser should scroll to after clicking the link.
It determines the font size of the anchor text inside the link element.
It is used to specify where the linked document will be opened when the user clicks on the link.
What is an absolute path?
A path that is relative to the current file.
A path that includes variables.
A path that includes wildcard characters.
A complete path to a resource, starting from the root directory.
What is the role of the link element in HTML?
It's used to create hyperlinks within the same webpage.
It's used to define the layout and structure of a webpage.
It's used to embed audio or video files into a webpage.
It's used to link to external resources like stylesheets and site icons.
Which of the following is a valid value for working with open graph properties?
"og:socialMedia"
"og:mediaOG"
"og:openGraph"
"og:title"
Which of the following is an example of a boolean attribute?
href
src
width
checked
Which of the following is a correct syntax for the img element?
</img>
</img>
``
``
What is the iframe element used for?
It's used to add captions to images.
It's used to add copyright information for media.
It's used to create hyperlinks within the same webpage.
It's used to embed another document within the current HTML document.
Which of the following is NOT a valid link state for anchor elements?
hover
visited
active
href
What is the role of the title element?
An element that allows users to edit the source code of a webpage.
It defines the layout and positioning of elements within a web page.
It's used to embed videos and multimedia content directly into an HTML document.
It specifies the title for a document and appears in the browser tab or window.
Which of the following target attributes opens a link in the parent of the current context?
_blank
_self
_unfencedTop
_parent
Which attribute is used to set the UTF-8 character encoding for an HTML document?
accept
capture
enctype
charset
What is the role of HTML on the web?
HTML is used for style and layout.
HTML is used to add interactivity on the page.
HTML is a registry for software packages.
HTML represents the content and structure for a web page.
Which image license works for the public domain?
JPG
Creative Commons.
BSD
Creative Commons 0.
How do you set a boolean attribute to false?
By setting the attribute value to 0.
By using the not operator before the attribute name.
By setting the attribute to an empty string ("").
By omitting the attribute from the element.
What is the script element used for?
It's used to embed CSS into the HTML document or link to an external CSS file.
It's used to embed Pascal code into the HTML document.
It's used to embed C# code into the HTML document.
It's used to embed JavaScript into the HTML document or link to an external JavaScript file.
Which of the following elements is used to set the title for an HTML document?
footer
section
figcaption
title
What is the class attribute typically used for?
It's used to embed metadata about the element.
It's used to define inline styles directly within the HTML tag.
It's used to specify unique identifiers for JavaScript functions.
It's used to apply a set of styles to multiple elements.
Which of the following is NOT an example of a commonly used HTML entity?
" (Double quote).
© (Copyright symbol).
> (Greater than Symbol).
÷ (div element).
Which element is used to add audio to your HTML document?
media
video
hr
audio
Where is the content represented on the page placed in an HTML document?
In between the head and the body elements.
Within the repr element.
Within the script element.
Within the body element.
Which attribute is used to start the audio again once it is finished?
multiple
inputmode
enctype
loop
Which of the following is the correct syntax for a div element?
<<div>>block container<</div>>
>>div>>block container>>div>>
[div]block container[/div]
<div>block container</div>
How does target="_self" work?
It specifies the position within the linked document where the browser should scroll to after clicking the link.
It automatically downloads the linked document to the user's computer.
It redirects the user to a different website specified in the href attribute.
It opens a link in the current browsing context.
What is a relative path?
It specifies the exact location of a file or directory from the root directory of the file system.
It includes the full URL starting from the domain name to the specific file or directory.
It always begins with a forward slash (/) indicating the root directory of the website or file system.
It specifies the location of a file or directory relative to the current working directory.
Which of the following elements is the correct syntax for a link element?
<link rel="stylesheet" href="./styles.css"></link>
</link rel="stylesheet" href="./styles.css"></link>
<<link rel="stylesheet" href="./styles.css"></link>>
<link rel="stylesheet" href="./styles.css" />
Which of the following is NOT a valid value for working with open graph properties?
"og:title"
"og:type"
"og:image"
"og:socialMedia"
Which of the following is the correct syntax for a paragraph element?
>p>paragraph element>/p>
<<p>>paragraph element<</p>>
<p>
<p>paragraph element</p>
What does the name of the iframe element stand for?
Inline Framing
Inner Frame
Inline video
Inline Frame
What does the active state mean for anchor elements?
The link is disabled and cannot be clicked.
The mouse cursor is over the link.
The link has been visited by the user.
A user is actively clicking on it.
Which of the following will open the link in a new browser tab?
<a target="_parent" href="https://freecatphotoapp.com">cat photos</a>
<a target="_top" href="https://freecatphotoapp.com">cat photos</a>
<a target="_self" href="https://freecatphotoapp.com">cat photos</a>
<a target="_blank" href="https://freecatphotoapp.com">cat photos</a>
Which of the following is a void element?
div
section
p
img
Which of the following is the correct way to use HTML entities?
<p>This is an <&img />& element</p>
<p>This is an ;lt&img /;gt& element</p>
<p>This is an ;lt;img /;gt; element</p>
<p>This is an <img /> element</p>
What is the ul element used for in HTML?
It is used to group a list of images only.
It is used to group a list of links only.
It is used to group an ordered list of items.
It is used to group a bulleted list of items.
Which of the following is the correct way to apply multiple classes to an HTML element?
<div class="box>>red>>box"></div>
<div class="box<<red<<box"></div>
<div class="box-red-box"></div>
<div class="box red-box"></div>
Which of the following elements is used to represent an ordered list of items?
span
div
ul
ol
What are open graph properties used for?
These properties are used to embed interactive multimedia content directly into web pages.
These properties are used to generate dynamic pop-up advertisements on websites.
These properties are used to encrypt sensitive data transmitted between web servers and users' browsers.
These properties are used to set how a website's content will be seen on different social media platforms.
Which of the following is used to set a short description for a web page?
<meta
add="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
set="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
description="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
name="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
What does SVG stand for?
Scalable Vector Graph
Scalable Vistor Graphics
Site Vector Graphics
Scalable Vector Graphics
What is the role of the footer element?
This element is used to group related captions and images on a web page.
This element is used to create horizontal lines in between paragraphs on the page.
This element is used to create a list of ordered items at the bottom of the page.
This element is used to group copyright content or related documents at the bottom of the page.
What is UTF-8 character encoding?
It is a standardized character encoding used to set the title for a web page.
It is a set of characters used to set the page description for the web page.
It is a special set of characters used in elements to improve media performance.
It is a standardized character encoding widely used on the web.
Which of the following is an example of a replaced element?
slot
div
p
iframe
Which of the following is considered the most important heading on a web page?
h6
h3
h5
h1
Which of the following elements is used to link to external resources like stylesheets and site icons?
a
p
div
link
Which of the following elements is used to convey a sense of urgency, seriousness or strong importance?
important
heavy
strength
strong
What is the role of the figcaption element?
It provides captions for the content inside a span element.
It provides captions for the content inside a slot element.
It provides captions for the content inside a div element.
It provides captions for the content inside a figure element.
Which of the following is the correct way to set the DOCTYPE declaration for an HTML document?
<DOCTYPE>
<*DOCTYPE html>
<<DOCTYPE html>>
<!DOCTYPE html>
What is the purpose of the head element in an HTML document?
It is a container of anchor elements for the HTML document.
It is a container of images for the HTML document.
It is a container of heading elements for the HTML document.
It is a container of meta data for the HTML document.
Which of the following is the correct way to set the language of the HTML document to english?
<html lang-set="en">
<html set-lang="en">
<html language="en">
<html lang="en">
Which of the following elements should NOT be placed inside of the head?
link
meta
title
img
Which of the following is NOT a correct statement about absolute and relative paths?
Absolute paths start from the root directory, while relative paths depend on the location of the current file.
Relative paths are shorter and more flexible for linking within a website, while absolute paths include the full URL.
Both absolute and relative paths can be used to link to files within the same website.
Relative paths cannot use .. to move up directories, but absolute paths can.
Which of the following is NOT a valid target attribute value in an a tag?
_self
_parent
_top
_main
What is the purpose of the controls attribute in the audio element?
It defines the audio file format for the browser to use.
It automatically starts the audio when the page loads.
It specifies the audio file’s source URL.
It adds built-in playback controls like play, pause, and volume adjustment.
Which of the following elements improves SEO by providing a brief description of the web page?
<meta
description="describe"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
name="desc"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
description="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
<meta
name="description"
content="Discover expert tips and techniques for gardening in small spaces, choosing the right plants, and maintaining a thriving garden."
/>
What does <meta charset="utf-8" /> do?
Sets the language of the webpage to English.
Links an external CSS stylesheet.
Specifies the title of the webpage.
Defines the character encoding to ensure proper text display.
What is the difference between link and script elements in HTML?
link is for JavaScript files, and script is for CSS files.
Both link and script are used to style web pages.
script is for adding styles, and link is for running JavaScript.
link is used to add styles from an external CSS file, while script is used to run JavaScript code.
Which of the following statements about HTML classes and IDs is incorrect?
A class name can be used multiple times throughout an HTML document.
The rel attribute defines the relationship between the linked resource and the HTML document.
The og:image property is used to specify the image displayed in social media posts.
ID names cannot contain underscores and must be unique.
Which of the following statements about HTML heading elements is true?
The text size increases from h1 to h6.
The text size remains the same for all heading elements.
h3 is larger than h2.
The text size decreases from h1 to h6.
Which statement is incorrect about HTML elements?
HTML elements are the basic building blocks of a webpage.
Some codebases include a forward slash (/) inside void elements.
A boolean attribute is one that works simply by being present or absent in a tag.
Void elements contain content and only have a start tag.
Which of the following statements about void elements in HTML is true?
A void element must always include a forward slash / before closing.
A void element should never include a forward slash /.
The forward slash / is mandatory for self-closing void elements in all versions of HTML.
Both and are acceptable in modern HTML.
What is the primary purpose of comments in programming?
To make the code run faster.
To change how the browser displays content.
To store temporary data within the code.
To leave notes for yourself and other developers in the code.
Which target attribute opens a link in the same browsing context as the current one?
_blank
_top
_parent
_self
What is the purpose of the em element in HTML?
To make text bigger.
To change the text color.
To underline words for emphasis.
To highlight important text by making it italic.
What does the strong element do in HTML?
Increases the font size.
Changes the text color.
Underlines the text.
Makes text bold to show importance.
What is the main difference between the figure and figcaption elements in HTML?
figure is used for captions, while figcaption is used to group related content like images or diagrams.
figcaption must always be placed outside the figure element.
There is no difference; both are used for the same purpose.
figure groups related content like images or diagrams, while figcaption provides a caption for that content
Why are HTML entities used?
To add styling to text.
To create hyperlinks in a webpage.
To increase the font size of special characters.
To represent reserved characters like < and & in HTML.
Which of the following statements about Open Graph tags is correct?
Open Graph tags are used to style a webpage with CSS.
Open Graph tags are only used for SEO and have no effect on social media.
Open Graph tags must be placed inside the body section of HTML.
The og:title property sets the title that appears when content is shared on social media.
Which of the following statements about image formats is incorrect?
WEBP and AVIF are better for modern image optimization.
SVG images can scale without losing quality.
Compression helps reduce image file sizes.
PNG and JPG are the best formats for optimized images today.
What does the loop attribute do in the audio element?
Plays the audio once.
Stops the audio after one play.
Slows down the audio playback.
Repeats the audio continuously.
Which of the following best describes an HTML boilerplate?
A special tool used by web developers to add watermarks to documents.
A browser plugin that speeds up webpage loading.
A coding framework exclusively for animations in HTML.
A predefined template containing essential HTML structure for web development.