Which HTML5 element is used to represent a scalar measurement within a known range, often displayed as a progress bar?
datalist
progress
meter
range
Which HTML element is used to indicate a lengthy quotation from another source?
<q>
<blockquote>
<code>
<cite>
What is the primary purpose of the viewport meta tag in responsive web design?
It specifies the character encoding for the HTML document.
It links the HTML document to an external stylesheet.
It embeds JavaScript code into the HTML document.
It defines the area of the webpage visible to the user.
What is the primary purpose of the class attribute in HTML?
class
Group multiple elements for styling and scripting
Store temporary data for an element
Specify the element's position in the document outline
Define inline styles for an element
How is data stored in localStorage?
As strings only
As strings, but can represent other data types
As JSON objects only
As arrays only
What HTML5 input type allows the user to select a color and provides a visual color picker?
text
hue
color
Which attribute is used to control the order in which elements receive focus when the user navigates with the Tab key?
contenteditable
draggable
hidden
tabindex
Which tag would you use to mark up the output of a command-line program in HTML?
<pre>
<samp>
<kbd>
Which attribute, when added to an input field, makes it mandatory for the user to fill out before submitting the form?
disabled
readonly
required
placeholder
How can you provide alternative content to be displayed if the browser doesn't support the embedded content within an <object> tag?
By using the 'alt' attribute within the <object> tag
By including a comment tag with the alternative content
By using a separate <div> element with a specific ID
By placing the alternative content inside the opening and closing <object> tags