Basics Flashcards
(32 cards)
What does the ‘data-*’ attribute in HTML allow you to do?
It allows you to store custom data private to the page or application.
True or False: The <template> element is used to define HTML fragments that should not be rendered when the page loads.</template>
True
Fill in the blank: The <dialog> element is used to create a \_\_\_\_\_\_\_\_ on a web page.</dialog>
dialog box
What is the purpose of the ‘contenteditable’ attribute?
It specifies whether the content of an element is editable by the user.
Which HTML element is used to define a section of navigation links?
<nav>
</nav>
True or False: The <picture> element is used to provide multiple sources for an image.</picture>
True
What does the ‘hidden’ attribute do in HTML?
It indicates that the element is not yet, or is no longer, relevant.
What is the purpose of the <progress> element?</progress>
It represents the completion progress of a task.
Fill in the blank: The <meter> element is used to measure a \_\_\_\_\_\_\_\_ within a known range.</meter>
scalar value
What is the function of the <base></base> element in an HTML document?
It specifies the base URL for all relative URLs in the document.
True or False: The
element can have a 'defer' attribute which delays script execution until the document has finished parsing.
True
What is the purpose of the ‘sandbox’ attribute in an <iframe>?
It enables an extra set of restrictions for the content in the iframe.
Which HTML element is used to create a footer for a section or page?
<footer>
</footer>
Fill in the blank: The <source></source> element is used within <audio> and <video> to specify multiple \_\_\_\_\_\_\_\_.</video></audio>
media resources
What does the ‘async’ attribute do when added to a
tag?
It allows the script to be downloaded asynchronously without blocking the HTML parsing.
True or False: The <wbr></wbr> element suggests an optional line break opportunity.
True
What is the significance of the <main> element in HTML5?
It represents the main content of the <body> of a document.
Fill in the blank: The <summary> element is used as a summary for the <______> element.
details
What does the ‘lang’ attribute specify in HTML?
It specifies the language of the element’s content.
What does the <link></link> element with ‘rel=stylesheet’ do?
It links an external CSS stylesheet to the HTML document.
True or False: The <noscript> element is used to provide alternative content for users who have disabled JavaScript.</noscript>
True
What is the purpose of the <slot> element in Web Components?</slot>
It acts as a placeholder in a shadow DOM for external content.
Fill in the blank: The <address> element is used to provide contact ________ for the author of a document.
information
What does the ‘role’ attribute do in ARIA?
It defines the role of an element for assistive technologies.