What HTML5 tag provides a predefined list of options for an input field, offering suggestions to the user as they type?
select
datalist
option
list
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.
What attribute is used to define a regular expression that user input must match in a form field?
regex
pattern
validate
match
Which attribute within the viewport meta tag is used to set the initial zoom level of the webpage?
initial-scale
user-scalable
width
height
Which HTML5 element is used to embed audio content in a webpage?
Which HTML element is used to indicate a lengthy quotation from another source?
<blockquote>
<q>
<code>
<cite>
How is data stored in localStorage?
As arrays only
As strings only
As strings, but can represent other data types
As JSON objects only
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 including a comment tag with the alternative content
By using the 'alt' attribute within the <object> tag
By using a separate <div> element with a specific ID
Which HTML5 input type is used to restrict user input to a valid email address?
email
url
text
mail
What HTML5 input type allows the user to select a color and provides a visual color picker?
range
color
hue