0
0
Bootsrapmarkup~20 mins

Display headings in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap Headings Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2: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>
AVery large, bigger than normal h1 size
BSame size as a normal h1 element
CSmaller than a normal h1 element
DInvisible, no text shown
Attempts:
2 left
💡 Hint
Bootstrap display classes make headings larger than normal.
selector
intermediate
2: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?
Adisplay-1
Blead
Cdisplay-6
Dtext-muted
Attempts:
2 left
💡 Hint
Display classes with higher numbers are smaller.
accessibility
advanced
2: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>
Asr-only
Bd-none
Cinvisible
Dvisually-hidden
Attempts:
2 left
💡 Hint
Bootstrap 5 uses a specific class for screen-reader-only content.
layout
advanced
2: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>
Ajustify-content-center
Btext-center
Cmx-auto
Dalign-items-center
Attempts:
2 left
💡 Hint
Text alignment classes start with text- in Bootstrap.
🧠 Conceptual
expert
3: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)?
ADisplay classes change only the font size and weight but keep the semantic meaning of the heading tag.
BDisplay classes replace the heading tag with a div and remove semantic meaning.
CDisplay classes make the heading invisible but keep it in the DOM.
DDisplay classes automatically add ARIA roles to the heading.
Attempts:
2 left
💡 Hint
Bootstrap display classes style the heading but do not change its HTML tag.