What does the hidden attribute do to an HTML element?
hidden
Completely removes the element from the document
Prevents the element from being displayed on the page
Prevents the element from receiving focus
Makes the element draggable by the user
What is the primary purpose of the viewport meta tag in responsive web design?
It links the HTML document to an external stylesheet.
It defines the area of the webpage visible to the user.
It embeds JavaScript code into the HTML document.
It specifies the character encoding for the HTML document.
What HTML5 input type allows the user to select a color and provides a visual color picker?
range
hue
text
color
Which HTML5 input type is used to let the user enter a URL?
web
url
link
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
What is the primary purpose of the HTML5 <canvas> element?
To structure page layout and sections.
To display static vector graphics.
To embed pre-existing images.
To create interactive animations and graphics.
Which global attribute is used to uniquely identify an HTML element within a document?
id
data-*
class
contenteditable
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> is used for keyboard input, while <code> is for displaying programming code.
<kbd> is for generic code snippets, while <code> represents user input.
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
Which HTML5 input type is used to restrict user input to a valid email address?
email
mail
Which attribute, when added to an input field, makes it mandatory for the user to fill out before submitting the form?
readonly
disabled
placeholder
required