How do you store custom data associated with an HTML element, specifically for JavaScript access?
Utilizing data-* attributes
data-*
Through the contenteditable attribute
contenteditable
By embedding data directly within the element's content
Using the hidden attribute
hidden
Which HTML5 element is used to embed audio content in a webpage?
What is the primary purpose of the <pre> tag in HTML?
<pre>
To preserve whitespace and line breaks exactly as typed.
To create a new paragraph with indented text.
To display large font sizes for headings.
To display text in a bold and italicized format.
Which of the following file formats is NOT commonly supported by the <video> element?
WebM
MP4
BMP
Ogg
Which attribute, when added to an input field, makes it mandatory for the user to fill out before submitting the form?
disabled
required
placeholder
readonly
Which attribute is used to control the order in which elements receive focus when the user navigates with the Tab key?
tabindex
draggable
How can you provide alternative content to be displayed if the browser doesn't support the embedded content within an <object> tag?
By placing the alternative content inside the opening and closing <object> tags
By using a separate <div> element with a specific ID
By including a comment tag with the alternative content
By using the 'alt' attribute within the <object> tag
Which HTML5 input type is used to let the user enter a URL?
url
link
web
text
Which HTML5 element is used to define the main content of a webpage?
Which tag would you use to mark up the output of a command-line program in HTML?
<code>
<samp>
<kbd>