What is the default behavior of a browser when encountering a newline character within a <pre> tag?
<pre>
The newline character creates a line break.
The browser displays an error message.
The newline character is ignored.
The newline character is replaced with a space.
Which HTML5 input type is used to let the user enter a URL?
text
link
web
url
How do Web Workers communicate with the main script?
Message passing (events)
Direct function calls
Shared memory access
WebSockets
Which HTML5 element is used to define the main content of a webpage?
Which tag would you use to mark up the output of a command-line program in HTML?
<samp>
<code>
<kbd>
What is the function of the 'controls' attribute within the <video> tag?
It specifies the video's source URL.
It loops the video continuously.
It displays playback controls for the user.
It automatically plays the video.
Which attribute within the viewport meta tag is used to set the initial zoom level of the webpage?
height
user-scalable
initial-scale
width
How does the <kbd> tag differ from the <code> tag in HTML?
<kbd> is for generic code snippets, while <code> represents user input.
<kbd> is used for keyboard input, while <code> is for displaying programming code.
<kbd> displays text in a fixed-width font, while <code> uses a proportional font.
<kbd> and <code> are interchangeable; there is no practical difference.
Which HTML5 element is used to embed audio content in a webpage?
Which attribute makes an HTML element directly editable by the user in the web browser?
contenteditable
tabindex
draggable
hidden