What is the primary purpose of the class attribute in HTML?
class
Group multiple elements for styling and scripting
Specify the element's position in the document outline
Store temporary data for an element
Define inline styles for an element
What HTML5 tag provides a predefined list of options for an input field, offering suggestions to the user as they type?
option
datalist
list
select
Which attribute, when added to an input field, makes it mandatory for the user to fill out before submitting the form?
disabled
readonly
placeholder
required
How is data stored in localStorage?
As arrays only
As JSON objects only
As strings only
As strings, but can represent other data types
Which of the following file formats is NOT commonly supported by the <video> element?
BMP
Ogg
WebM
MP4
Can you nest a <blockquote> element within another <blockquote> element in HTML?
<blockquote>
Yes, it will create visually nested quotations.
It depends on the browser's interpretation of nested blockquotes.
Yes, but both blockquotes will have the same indentation level.
No, nested blockquotes are not allowed in HTML.
How do you store custom data associated with an HTML element, specifically for JavaScript access?
By embedding data directly within the element's content
Through the contenteditable attribute
contenteditable
Utilizing data-* attributes
data-*
Using the hidden attribute
hidden
Which HTML tag is most appropriate for displaying a variable name within a code snippet?
<var>
<code>
<samp>
<kbd>
Which attribute within the viewport meta tag is used to set the initial zoom level of the webpage?
initial-scale
height
width
user-scalable
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd> is used for keyboard input, while <code> is for displaying programming code.
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
<kbd> and <code> are interchangeable; there is no practical difference.
<kbd> is for generic code snippets, while <code> represents user input.