Challenge - 5 Problems
Bootstrap Component Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2: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?
Attempts:
2 left
💡 Hint
Think about how components help when building many parts of a page.
✗ Incorrect
Components in Bootstrap are reusable pieces of code. They help keep your page organized and save time by not rewriting the same styles or HTML repeatedly.
📝 Syntax
intermediate2: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
Attempts:
2 left
💡 Hint
Look for the class that controls navbar expansion on large screens.
✗ Incorrect
The navbar-expand-lg class makes the navbar expand on large screens and collapse on smaller ones, making it responsive.
❓ layout
advanced2: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?
Attempts:
2 left
💡 Hint
Think about how columns adjust on phones vs desktops.
✗ Incorrect
The grid system divides the page into 12 columns that resize based on screen size. This helps components line up neatly and stay responsive.
❓ accessibility
advanced2: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?
Attempts:
2 left
💡 Hint
Look for an attribute that links the modal to its title for screen readers.
✗ Incorrect
The aria-labelledby attribute points to the modal's title element, helping screen readers announce the dialog properly.
❓ rendering
expert2:00remaining
What will be the visual result of this Bootstrap button code?
Consider this HTML code:
What will the button look like when rendered in a browser?
<button type="button" class="btn btn-danger btn-lg">Delete</button>
What will the button look like when rendered in a browser?
Attempts:
2 left
💡 Hint
Check the meaning of the classes
btn-danger and btn-lg.✗ Incorrect
The class btn-danger makes the button red, and btn-lg makes it large. The text color is white by default on danger buttons.