Essential Bootstrap 5: A Guided Tutorial Using Hangman Stage 1

This page introduces the essential Bootstrap 5 features used in our Hangman Stage 1 project. You'll learn what Bootstrap is, why we use it, and how to use its classes and components to build responsive, attractive web apps quickly and effectively.

1. What is Bootstrap 5?

Bootstrap 5 is a popular open-source CSS framework that helps you build modern, responsive websites quickly. It provides ready-to-use classes for layout, typography, buttons, forms, and more—so you can focus on your content and logic.

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">

2. Why Use Bootstrap?

3. Major Bootstrap Features Used in Hangman Stage 1

<div class="container py-5">...</div>
<h1 class="text-center mb-4">Hangman Game - Stage 1</h1>
<button class="btn btn-primary">Restart Game</button>
<a class="btn btn-outline-secondary" href="hangmanChatlogStg1.html">View AI Chatlog</a>
<div class="d-flex flex-wrap justify-content-center mb-3">...</div>

4. How to Use Bootstrap Classes

5. Example: Button Variations

<button class="btn btn-primary">Primary Button</button>
<button class="btn btn-outline-secondary">Outline Button</button>
<button class="btn btn-success">Success Button</button>

Try changing the color class (btn-primary, btn-success, etc.) to see different styles. Outline buttons are great for secondary actions and fill with color on hover.

6. Making Your Site Responsive

7. Tips for Using Bootstrap Effectively

8. See Bootstrap in Action

Explore the game, AI chatlog, HTML guide, and CSS guide to see how Bootstrap 5 brings everything together!

Tip: Use your browser's "Inspect" tool to see which Bootstrap classes are applied to each element and experiment with different classes live.