How is data stored in localStorage?
As strings only
As strings, but can represent other data types
As JSON objects only
As arrays only
Which attribute is used to control the order in which elements receive focus when the user navigates with the Tab key?
contenteditable
tabindex
draggable
hidden
Which HTML tag is most appropriate for displaying a variable name within a code snippet?
<code>
<kbd>
<samp>
<var>
What is a key difference between using <iframe> and <object> for embedding content?
Which tag would you use to mark up the output of a command-line program in HTML?
<pre>
What is the primary purpose of the <pre> tag in HTML?
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.
To display large font sizes for headings.
Which type of Web Storage is designed to store data for the duration of the user's browsing session?
browserStorage
localStorage
sessionStorage
temporaryStorage
What attribute is used to define a regular expression that user input must match in a form field?
match
pattern
regex
validate
Which attribute makes an HTML element directly editable by the user in the web browser?
What is the purpose of the 'data' attribute within the <object> tag?
Controls the display style of the object's border
Defines the source URL of the content to be embedded
Specifies the width of the embedded object
Sets the height of the embedded object