What is the primary purpose of Web Workers in HTML5?
To perform CPU-intensive tasks in the background
To manage network requests
To manipulate the DOM directly
To handle user input events
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd>
<code>
<kbd> is used for keyboard input, while <code> is for displaying programming code.
<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> and <code> are interchangeable; there is no practical difference.
Which HTML tag is most appropriate for displaying a variable name within a code snippet?
<samp>
<var>
Which HTML5 element is used to embed audio content in a webpage?
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
What HTML5 input type allows the user to select a color and provides a visual color picker?
text
range
hue
color
Can you nest a <blockquote> element within another <blockquote> element in HTML?
<blockquote>
Yes, but both blockquotes will have the same indentation level.
Yes, it will create visually nested quotations.
It depends on the browser's interpretation of nested blockquotes.
No, nested blockquotes are not allowed in HTML.
How do you store custom data associated with an HTML element, specifically for JavaScript access?
Through the contenteditable attribute
Using the hidden attribute
By embedding data directly within the element's content
Utilizing data-* attributes
data-*
What does the 'srcset' attribute allow you to do with images in responsive web design?
Set the image as a background image for the webpage.
Specify different image sources based on the user's internet speed.
Embed videos directly into the webpage.
Control the animation speed of animated GIFs.
Which HTML5 input type is used to let the user enter a URL?
web
link
url