0
0
Bootsrapmarkup~20 mins

Component-based framework philosophy in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap Component Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main benefit of using components in Bootstrap?
Bootstrap uses components like buttons, cards, and navbars. What is the main benefit of using these components in your web page?
AThey force you to write all CSS from scratch.
BThey let you reuse code easily and keep your page organized.
CThey make your page load slower because of extra code.
DThey only work on mobile devices, not desktop.
Attempts:
2 left
💡 Hint
Think about how components help when building many parts of a page.
📝 Syntax
intermediate
2:00remaining
Which Bootstrap class creates a responsive navigation bar?
You want to add a navigation bar that adjusts to screen size. Which class should you add to the
Anavbar-expand-lg
Bcontainer-fluid
Ctext-center
Dbtn-primary
Attempts:
2 left
💡 Hint
Look for the class that controls navbar expansion on large screens.
layout
advanced
2:00remaining
How does Bootstrap's grid system help with component layout?
Bootstrap uses a grid system with rows and columns. How does this system help when placing components on a page?
AIt forces all components to be the same size regardless of content.
BIt disables responsiveness and fixes component positions.
CIt divides the page into flexible columns so components align nicely on all screen sizes.
DIt only works with images, not other components.
Attempts:
2 left
💡 Hint
Think about how columns adjust on phones vs desktops.
accessibility
advanced
2:00remaining
Which attribute improves accessibility for Bootstrap modals?
Bootstrap modals should be accessible to all users. Which attribute helps screen readers identify the modal dialog?
Atabindex="-1"
Bdata-toggle
Cclass="modal-content"
Daria-labelledby
Attempts:
2 left
💡 Hint
Look for an attribute that links the modal to its title for screen readers.
rendering
expert
2:00remaining
What will be the visual result of this Bootstrap button code?
Consider this HTML code:
<button type="button" class="btn btn-danger btn-lg">Delete</button>

What will the button look like when rendered in a browser?
AA large red button with white text labeled 'Delete'.
BA small blue button with black text labeled 'Delete'.
CA large green button with white text labeled 'Delete'.
DA plain button with default browser style labeled 'Delete'.
Attempts:
2 left
💡 Hint
Check the meaning of the classes btn-danger and btn-lg.