Which global attribute indicates that an element can be dragged and dropped using JavaScript?
draggable
contenteditable
tabindex
hidden
Which attribute makes an HTML element directly editable by the user in the web browser?
Which HTML5 API is used to obtain the user's geographical location?
Web Workers API
Web Storage API
Geolocation API
Fetch API
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd>
<code>
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
<kbd> is for generic code snippets, while <code> represents user input.
<kbd> and <code> are interchangeable; there is no practical difference.
<kbd> is used for keyboard input, while <code> is for displaying programming code.
Which HTML5 element is used to embed audio content in a webpage?
Which of the following file formats is NOT commonly supported by the <video> element?
Ogg
BMP
WebM
MP4
Which tag would you use to mark up the output of a command-line program in HTML?
<samp>
<pre>
Which HTML5 element is used to represent a scalar measurement within a known range, often displayed as a progress bar?
datalist
progress
range
meter
How can you provide alternative content to be displayed if the browser doesn't support the embedded content within an <object> tag?
By using the 'alt' attribute within the <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 a separate <div> element with a specific ID
Which HTML5 input type is used to let the user enter a URL?
url
text
link
web