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.
Embed videos directly into the webpage.
Control the animation speed of animated GIFs.
Specify different image sources based on the user's internet speed.
What does the hidden attribute do to an HTML element?
hidden
Prevents the element from receiving focus
Makes the element draggable by the user
Prevents the element from being displayed on the page
Completely removes the element from the document
Which HTML5 element is used to represent a scalar measurement within a known range, often displayed as a progress bar?
meter
datalist
progress
range
What is the primary purpose of the <pre> tag in HTML?
<pre>
To display large font sizes for headings.
To display text in a bold and italicized format.
To create a new paragraph with indented text.
To preserve whitespace and line breaks exactly as typed.
How can you provide alternative content to be displayed if the browser doesn't support the embedded content within an <object> tag?
By including a comment tag with the alternative content
By placing the alternative content inside the opening and closing <object> tags
By using the 'alt' attribute within the <object> tag
By using a separate <div> element with a specific ID
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
What HTML5 tag provides a predefined list of options for an input field, offering suggestions to the user as they type?
select
option
list
What is the default behavior of a browser when encountering a newline character within a <pre> tag?
The browser displays an error message.
The newline character is ignored.
The newline character creates a line break.
The newline character is replaced with a space.
Which HTML5 element is used to embed audio content in a webpage?
Which global attribute indicates that an element can be dragged and dropped using JavaScript?
tabindex
draggable
contenteditable