Basics Flashcards

(32 cards)

1
Q

What does the ‘data-*’ attribute in HTML allow you to do?

A

It allows you to store custom data private to the page or application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: The <template> element is used to define HTML fragments that should not be rendered when the page loads.</template>

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: The <dialog> element is used to create a \_\_\_\_\_\_\_\_ on a web page.</dialog>

A

dialog box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of the ‘contenteditable’ attribute?

A

It specifies whether the content of an element is editable by the user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which HTML element is used to define a section of navigation links?

A

<nav>
</nav>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True or False: The <picture> element is used to provide multiple sources for an image.</picture>

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the ‘hidden’ attribute do in HTML?

A

It indicates that the element is not yet, or is no longer, relevant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the <progress> element?</progress>

A

It represents the completion progress of a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: The <meter> element is used to measure a \_\_\_\_\_\_\_\_ within a known range.</meter>

A

scalar value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the function of the <base></base> element in an HTML document?

A

It specifies the base URL for all relative URLs in the document.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: The

 element can have a 'defer' attribute which delays script execution until the document has finished parsing.
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the ‘sandbox’ attribute in an <iframe>?

A

It enables an extra set of restrictions for the content in the iframe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which HTML element is used to create a footer for a section or page?

A

<footer>
</footer>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank: The <source></source> element is used within <audio> and <video> to specify multiple \_\_\_\_\_\_\_\_.</video></audio>

A

media resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the ‘async’ attribute do when added to a

 tag?
A

It allows the script to be downloaded asynchronously without blocking the HTML parsing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False: The <wbr></wbr> element suggests an optional line break opportunity.

17
Q

What is the significance of the <main> element in HTML5?

A

It represents the main content of the <body> of a document.

18
Q

Fill in the blank: The <summary> element is used as a summary for the <______> element.

19
Q

What does the ‘lang’ attribute specify in HTML?

A

It specifies the language of the element’s content.

20
Q

What does the <link></link> element with ‘rel=stylesheet’ do?

A

It links an external CSS stylesheet to the HTML document.

21
Q

True or False: The <noscript> element is used to provide alternative content for users who have disabled JavaScript.</noscript>

22
Q

What is the purpose of the <slot> element in Web Components?</slot>

A

It acts as a placeholder in a shadow DOM for external content.

23
Q

Fill in the blank: The <address> element is used to provide contact ________ for the author of a document.

24
Q

What does the ‘role’ attribute do in ARIA?

A

It defines the role of an element for assistive technologies.

25
True or False: The