Challenge - 5 Problems
Lead Paragraph Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual effect of the
.lead class in Bootstrap?Look at the following HTML snippet using Bootstrap classes:
What will the paragraph look like compared to a normal paragraph?
<p class="lead">This is a lead paragraph.</p>
What will the paragraph look like compared to a normal paragraph?
Bootsrap
<p class="lead">This is a lead paragraph.</p>
Attempts:
2 left
💡 Hint
Think about how Bootstrap styles important introductory text.
✗ Incorrect
The
.lead class in Bootstrap makes paragraph text larger and lighter to highlight it as an introductory or important paragraph.🧠 Conceptual
intermediate1:30remaining
Why use a lead paragraph in a webpage?
Which of the following best explains the purpose of a lead paragraph styled with Bootstrap's
.lead class?Attempts:
2 left
💡 Hint
Think about what a 'lead' paragraph means in writing.
✗ Incorrect
A lead paragraph introduces the main idea or summary of the content, making it stand out for readers.
❓ selector
advanced1:30remaining
Which CSS selector targets only paragraphs with the Bootstrap
.lead class?You want to write custom CSS that changes the color of only lead paragraphs in Bootstrap. Which selector should you use?
Attempts:
2 left
💡 Hint
Remember how CSS selectors combine element names and classes.
✗ Incorrect
The selector
p.lead targets all <p> elements with the class lead. Other options select different elements or IDs.❓ layout
advanced2:00remaining
How does the
.lead class affect paragraph spacing in Bootstrap?Consider two paragraphs, one with
.lead and one without. How does Bootstrap's .lead class affect vertical spacing around the paragraph?Bootsrap
<p class="lead">Lead paragraph text.</p> <p>Normal paragraph text.</p>
Attempts:
2 left
💡 Hint
Check Bootstrap's default spacing for lead paragraphs.
✗ Incorrect
Bootstrap's .lead class does not change the bottom margin; lead paragraphs have the same vertical spacing as normal paragraphs.
❓ accessibility
expert2:30remaining
What accessibility benefit does using a
.lead paragraph provide?When using Bootstrap's
.lead class for paragraphs, which accessibility advantage is true?Attempts:
2 left
💡 Hint
Think about how visual styling helps all users, including those with cognitive disabilities.
✗ Incorrect
The
.lead class improves visual hierarchy, making important text easier to spot, which benefits all users including those with accessibility needs.