Which HTML5 API is used to obtain the user's geographical location?
Geolocation API
Web Workers API
Web Storage API
Fetch API
Which attribute within the viewport meta tag is used to set the initial zoom level of the webpage?
height
user-scalable
initial-scale
width
What is the purpose of the <figcaption> element in HTML5?
To create a figure inside an image.
To insert a figure from an external source.
To provide a caption for a figure.
To define a table caption.
Which HTML tag is most appropriate for displaying a variable name within a code snippet?
<samp>
<var>
<code>
<kbd>
Which tag would you use to mark up the output of a command-line program in HTML?
<pre>
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 does the hidden attribute do to an HTML element?
hidden
Completely removes the element from the document
Prevents the element from being displayed on the page
Makes the element draggable by the user
Prevents the element from receiving focus
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd> and <code> are interchangeable; there is no practical difference.
<kbd> is for generic code snippets, while <code> represents user input.
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
<kbd> is used for keyboard input, while <code> is for displaying programming code.
Can you nest a <blockquote> element within another <blockquote> element in HTML?
<blockquote>
Yes, but both blockquotes will have the same indentation level.
No, nested blockquotes are not allowed in HTML.
Yes, it will create visually nested quotations.
It depends on the browser's interpretation of nested blockquotes.
Which HTML tag is used to embed external content from another source, like a webpage, into the current HTML document?