What does the hidden attribute do to an HTML element?
hidden
Completely removes the element from the document
Prevents the element from receiving focus
Makes the element draggable by the user
Prevents the element from being displayed on the page
What HTML5 input type allows the user to select a color and provides a visual color picker?
hue
range
color
text
Which HTML5 element is used to embed audio content in a webpage?
What HTML5 tag provides a predefined list of options for an input field, offering suggestions to the user as they type?
list
option
datalist
select
Which attribute makes an HTML element directly editable by the user in the web browser?
tabindex
draggable
contenteditable
What is the default behavior of a browser when encountering a newline character within a <pre> tag?
<pre>
The newline character is ignored.
The newline character creates a line break.
The newline character is replaced with a space.
The browser displays an error message.
What is the primary purpose of the <pre> tag in HTML?
To display text in a bold and italicized format.
To create a new paragraph with indented text.
To display large font sizes for headings.
To preserve whitespace and line breaks exactly as typed.
Which of the following file formats is NOT commonly supported by the <video> element?
MP4
Ogg
BMP
WebM
What is the purpose of the 'data' attribute within the <object> tag?
Specifies the width of the embedded object
Defines the source URL of the content to be embedded
Controls the display style of the object's border
Sets the height of the embedded object
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 using a separate <div> element with a specific ID
By placing the alternative content inside the opening and closing <object> tags
By including a comment tag with the alternative content