Challenge - 5 Problems
Landing Page Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ layout
intermediateWhich Bootstrap class creates a responsive two-column layout in a landing page section?
You want to create a landing page section with two columns side by side on medium and larger screens, but stacked on smaller screens. Which Bootstrap class should you use on the container holding the columns?
Bootsrap
<div class="?"> <div class="col-md-6">Column 1</div> <div class="col-md-6">Column 2</div> </div>
Attempts:
2 left
💡 Hint
Think about the Bootstrap grid system and how columns are grouped.
✗ Incorrect
The 'row' class groups columns and creates a horizontal layout that stacks on small screens and aligns side by side on medium and larger screens.
❓ selector
intermediateWhich Bootstrap utility class adds vertical spacing between landing page sections?
You want to add vertical space between two landing page sections using Bootstrap utility classes. Which class adds vertical margin?
Bootsrap
<section class="?">Section 1</section> <section class="?">Section 2</section>
Attempts:
2 left
💡 Hint
Margin top adds space above an element.
✗ Incorrect
'mt-5' adds a large top margin, creating vertical space between sections.
❓ accessibility
advancedWhich attribute improves accessibility for a landing page navigation bar?
You have a navigation bar in your landing page. Which attribute should you add to the
Bootsrap
<nav ?>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
</ul>
</nav>Attempts:
2 left
💡 Hint
Screen readers use aria-label to describe landmarks.
✗ Incorrect
Adding aria-label="Primary navigation" helps screen readers identify the nav as the main navigation area.
❓ rendering
advancedWhat is the visual result of using the Bootstrap class 'jumbotron' in a landing page header?
You add the class 'jumbotron' to a header section in your landing page. What will the user see?
Bootsrap
<header class="jumbotron"> <h1>Welcome!</h1> <p>This is a simple hero unit.</p> </header>
Attempts:
2 left
💡 Hint
Jumbotron is used for highlighting important content with padding and background.
✗ Incorrect
The 'jumbotron' class creates a large padded container with a light gray background and larger text to highlight content.
🧠 Conceptual
expertHow does Bootstrap's container class affect landing page responsiveness?
Which statement best describes the role of the Bootstrap 'container' class in landing page sections?
Attempts:
2 left
💡 Hint
Think about how containers keep content neat on different devices.
✗ Incorrect
The 'container' class centers content and adds horizontal padding that changes with screen size to keep layout clean and readable.
