Student starter code (30% baseline)
index.html- Main HTML pagescript.js- JavaScript logicstyles.css- Styling and layoutpackage.json- Dependenciessetup.sh- Setup scriptREADME.md- Instructions (below)💡 Download the ZIP, extract it, and follow the instructions below to get started!
# Just open index.html in your browser
open index.html
# OR double-click index.html in your file explorer
No installation or setup needed! Bootstrap loads from CDN, so the template works immediately in any modern web browser.
Location: index.html - After the Cards section
Success Criteria:
<div class="section"> container<h2 class="mb-3">Bootstrap Badges</h2>Hints:
<span class="badge badge-COLOR">text</span>badge-primary, badge-success, badge-danger, badge-warning, badge-info, badge-secondaryExpected Result: A section with headings showing colorful badges with numbers/labels
Location: index.html - After the Badges section
Success Criteria:
Hints:
progress div contains inner progress-bar divstyle="width: 25%"bg-success, bg-info, bg-warning, bg-dangerprogress-bar div to show a labelmb-3 class for spacing between barsAdvanced (Optional):
progress-bar-striped class for striped appearanceprogress-bar-animated for animated stripes (requires striped class)Expected Result: 4 progress bars with different colors and completion percentages
Location: index.html - After Progress Bars section (button) AND before scripts (modal structure)
Success Criteria:
Hints:
data-toggle="modal" and data-target="#yourModalId"id="yourModalId" and class="modal fade"modal -> modal-dialog -> modal-content -> (header/body/footer)data-dismiss="modal" on close buttons to make them work×Important Attributes:
data-toggle="modal" - Tells Bootstrap this button opens a modaldata-target="#id" - Links button to modal by ID (must match!)data-dismiss="modal" - Closes modal when clickedfade class - Adds smooth fade animationModal Sizes (Optional):
modal-sm, modal-lg, or modal-xl to the modal-dialog divExpected Result: Clicking button opens a modal with smooth fade animation, header, content, and footer buttons
<head> (line 8)</body> (lines 199-200)data-target="#exampleModal" matches id="exampleModal"style="width: XX%" is set on progress-bar divbadge badge-primarybadge and a color classcol-md-4 class is present on card columnsmd breakpoint means 3 columns on medium+ screens, stacks on small<!-- CSS in <head> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<!-- JS before </body> -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Spacing -->
<div class="mt-3">margin-top: 1rem</div>
<div class="p-4">padding: 1.5rem (all sides)</div>
<div class="mb-5">margin-bottom: 3rem</div>
<!-- Text -->
<p class="text-center">Centered text</p>
<p class="text-muted">Gray text</p>
<h1 class="display-4">Large display heading</h1>
<!-- Colors -->
<div class="bg-primary">Blue background</div>
<p class="text-danger">Red text</p>
<button class="btn btn-success">Green button</button>
Before submitting:
Total: 35-45 minutes
After completing this activity:
Activity 09: Introduction to Bootstrap W1: Front-end Design & User Experience Telebort Engineering Time: 35-45 minutes