What is the primary purpose of the HTML5 <canvas> element?
To embed pre-existing images.
To create interactive animations and graphics.
To structure page layout and sections.
To display static vector graphics.
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.
Which attribute is used to control the order in which elements receive focus when the user navigates with the Tab key?
hidden
tabindex
contenteditable
draggable
Which attribute within the viewport meta tag is used to set the initial zoom level of the webpage?
width
initial-scale
user-scalable
height
Which HTML element is used to indicate a lengthy quotation from another source?
<q>
<code>
<cite>
What is the default behavior of a browser when encountering a newline character within a <pre> tag?
<pre>
The newline character creates a line break.
The newline character is replaced with a space.
The newline character is ignored.
The browser displays an error message.
Which type of Web Storage is designed to store data for the duration of the user's browsing session?
temporaryStorage
sessionStorage
browserStorage
localStorage
What is the function of the 'controls' attribute within the <video> tag?
It loops the video continuously.
It automatically plays the video.
It displays playback controls for the user.
It specifies the video's source URL.
What is the purpose of the 'data' attribute within the <object> tag?
Sets the height of the embedded object
Defines the source URL of the content to be embedded
Specifies the width of the embedded object
Controls the display style of the object's border
Which HTML tag is most appropriate for displaying a variable name within a code snippet?
<samp>
<kbd>
<var>