Which HTML5 input type is used to let the user enter a URL?
link
web
text
url
Which global attribute is used to uniquely identify an HTML element within a document?
class
data-*
contenteditable
id
Which attribute makes an HTML element directly editable by the user in the web browser?
draggable
tabindex
hidden
What is the primary purpose of the <pre> tag in HTML?
<pre>
To display large font sizes for headings.
To create a new paragraph with indented text.
To preserve whitespace and line breaks exactly as typed.
To display text in a bold and italicized format.
Which global attribute indicates that an element can be dragged and dropped using JavaScript?
Which HTML tag is used to embed external content from another source, like a webpage, into the current HTML document?
Which HTML5 element is used to represent a scalar measurement within a known range, often displayed as a progress bar?
range
progress
datalist
meter
What is the primary purpose of the class attribute in HTML?
Define inline styles for an element
Specify the element's position in the document outline
Group multiple elements for styling and scripting
Store temporary data for an element
What is the primary purpose of the HTML5 <canvas> element?
To embed pre-existing images.
To structure page layout and sections.
To display static vector graphics.
To create interactive animations and graphics.
What does the hidden attribute do to an HTML element?
Prevents the element from receiving focus
Completely removes the element from the document
Makes the element draggable by the user
Prevents the element from being displayed on the page