Which HTML5 element is used to define the main content of a webpage?
What is a key difference between using <iframe> and <object> for embedding content?
Which HTML5 input type is used to let the user enter a URL?
web
text
url
link
How is data stored in localStorage?
As arrays only
As strings, but can represent other data types
As JSON objects only
As strings only
Which HTML5 API is used to obtain the user's geographical location?
Web Storage API
Geolocation API
Fetch API
Web Workers API
What HTML5 tag provides a predefined list of options for an input field, offering suggestions to the user as they type?
datalist
option
list
select
Which of the following file formats is NOT commonly supported by the <video> element?
BMP
WebM
MP4
Ogg
Which global attribute is used to uniquely identify an HTML element within a document?
id
contenteditable
class
data-*
What HTML5 input type allows the user to select a color and provides a visual color picker?
range
hue
color
What is the primary purpose of Web Workers in HTML5?
To manipulate the DOM directly
To handle user input events
To manage network requests
To perform CPU-intensive tasks in the background