Which global attribute indicates that an element can be dragged and dropped using JavaScript?
contenteditable
hidden
draggable
tabindex
Which HTML5 element is used to define the main content of a webpage?
Which HTML tag is used to embed external content from another source, like a webpage, into the current HTML document?
What is the primary purpose of the viewport meta tag in responsive web design?
It specifies the character encoding for the HTML document.
It defines the area of the webpage visible to the user.
It embeds JavaScript code into the HTML document.
It links the HTML document to an external stylesheet.
Which attribute is used to control the order in which elements receive focus when the user navigates with the Tab key?
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd>
<code>
<kbd> and <code> are interchangeable; there is no practical difference.
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
<kbd> is used for keyboard input, while <code> is for displaying programming code.
<kbd> is for generic code snippets, while <code> represents user input.
How do Web Workers communicate with the main script?
Shared memory access
Message passing (events)
WebSockets
Direct function calls
Which HTML5 input type is used to restrict user input to a valid email address?
text
mail
url
email
What is the purpose of the <figcaption> element in HTML5?
To create a figure inside an image.
To insert a figure from an external source.
To define a table caption.
To provide a caption for a figure.
Which type of Web Storage is designed to store data for the duration of the user's browsing session?
localStorage
temporaryStorage
browserStorage
sessionStorage