mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update all comprehension check questions for attributes lecture (#56903)
Co-authored-by: Kay <kay@Kays-MacBook-Pro.local>
This commit is contained in:
committed by
GitHub
parent
a67999243a
commit
b4714190de
+24
-24
@@ -14,35 +14,35 @@ Watch the video and answer the questions below.
|
||||
|
||||
## --text--
|
||||
|
||||
Which of these best describes a boolean attribute?
|
||||
Which of the following is an example of a boolean attribute?
|
||||
|
||||
## --answers--
|
||||
|
||||
They always require a value.
|
||||
`src`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what their presence in the opening tag means.
|
||||
Watch the last part of the video where common boolean attributes were discussed.
|
||||
|
||||
---
|
||||
|
||||
They add JavaScript functionality to your code.
|
||||
`href`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what their presence in the opening tag means.
|
||||
Watch the last part of the video where common boolean attributes were discussed.
|
||||
|
||||
---
|
||||
|
||||
Their presence implies true.
|
||||
`disabled`
|
||||
|
||||
---
|
||||
|
||||
They are not different from regular attributes.
|
||||
`alt`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what their presence in the opening tag means.
|
||||
Watch the last part of the video where common boolean attributes were discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -50,35 +50,35 @@ Think about what their presence in the opening tag means.
|
||||
|
||||
## --text--
|
||||
|
||||
What do regular attributes do in HTML?
|
||||
What is the role of an attribute in HTML?
|
||||
|
||||
## --answers--
|
||||
|
||||
They provide additional information about an element.
|
||||
Attributes provide additional information and help define the behavior for HTML elements.
|
||||
|
||||
---
|
||||
|
||||
They provide the background information about an element.
|
||||
Attributes change the background color of an element.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what provides extra information about an element.
|
||||
Review the beginning of the video where the definition for attributes was discussed.
|
||||
|
||||
---
|
||||
|
||||
They are replacements for HTML elements.
|
||||
Attributes change the font size of an element.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what provides extra information about an element.
|
||||
Review the beginning of the video where the definition for attributes was discussed.
|
||||
|
||||
---
|
||||
|
||||
They allow developers to toggle a feature on and off.
|
||||
Attributes add JavaScript functionality to an element.
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about what provides extra information about an element.
|
||||
Review the beginning of the video where the definition for attributes was discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
@@ -86,35 +86,35 @@ Think about what provides extra information about an element.
|
||||
|
||||
## --text--
|
||||
|
||||
Which of these differentiates a boolean attribute from a regular attribute?
|
||||
Which of the following is the correct syntax for a boolean attribute?
|
||||
|
||||
## --answers--
|
||||
|
||||
A boolean attribute is true and a regular attribute is false.
|
||||
`<input type="checkbox" checked>`
|
||||
|
||||
---
|
||||
|
||||
A boolean attribute requires a value but a regular attribute does not.
|
||||
`<input type="checkbox" checked="on">`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the attribute that needs a value and the one that does not.
|
||||
Review the last part of the video where the `checked` attribute was discussed.
|
||||
|
||||
---
|
||||
|
||||
A boolean attribute provides additional information about an element but a regular attribute does not.
|
||||
`<input type="checkbox" checked="off">`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the attribute that needs a value and the one that does not.
|
||||
Review the last part of the video where the `checked` attribute was discussed.
|
||||
|
||||
---
|
||||
|
||||
A boolean attribute does not require a value but a regular attribute does.
|
||||
`<input type="checkbox" checked="isChecked">`
|
||||
|
||||
### --feedback--
|
||||
|
||||
Think about the attribute that needs a value and the one that does not.
|
||||
Review the last part of the video where the `checked` attribute was discussed.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user