Challenge - 5 Problems
Bootstrap Headings Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual size of the heading?
Given this Bootstrap heading class, what size will the text appear as in the browser?
Bootsrap
<h1 class="display-4">Hello World</h1>
Attempts:
2 left
💡 Hint
Bootstrap display classes make headings larger than normal.
✗ Incorrect
The class display-4 in Bootstrap makes the heading text very large, larger than the default h1 size.
❓ selector
intermediate2:00remaining
Which class makes a heading smaller in Bootstrap?
You want to make a heading smaller than the default h2 size using Bootstrap classes. Which class should you use?
Attempts:
2 left
💡 Hint
Display classes with higher numbers are smaller.
✗ Incorrect
Bootstrap display-6 is the smallest display heading size, smaller than h2 by default.
❓ accessibility
advanced2:00remaining
How to make a heading accessible but visually hidden?
You want to include a heading for screen readers but hide it visually using Bootstrap. Which class should you add?
Bootsrap
<h2 class="???">Section Title</h2>
Attempts:
2 left
💡 Hint
Bootstrap 5 uses a specific class for screen-reader-only content.
✗ Incorrect
The class visually-hidden hides content visually but keeps it accessible to screen readers.
❓ layout
advanced2:00remaining
How to center a heading horizontally using Bootstrap?
You want to center a heading horizontally inside its container using Bootstrap classes. Which class should you add?
Bootsrap
<h3 class="???">Centered Heading</h3>
Attempts:
2 left
💡 Hint
Text alignment classes start with text- in Bootstrap.
✗ Incorrect
The class text-center centers text horizontally inside its container.
🧠 Conceptual
expert3:00remaining
What is the difference between
display-* classes and normal heading tags?Which statement correctly explains the difference between Bootstrap's display classes (like display-1) and normal HTML heading tags (like h1)?
Attempts:
2 left
💡 Hint
Bootstrap display classes style the heading but do not change its HTML tag.
✗ Incorrect
Display classes only style the heading visually but keep the original HTML tag and its semantic meaning for accessibility.