codex-lv3-may-2025

Level Navigation: 1 2 3 4 5 6 7 8 9 10⚡ 11⚡ 12⚡ 13⚡ 14⚡ 15 16 17 18⚡ 19 20

Level 5: Bootstrap Styling

User Story: As a user, I want the form to look attractive and easy to use so that I enjoy filling it out.

What You’ll Do

Add Bootstrap CSS to style your form and make it look professional.

Instructions

💡 Code Hints

Need help with Bootstrap? Check out these snippets:

Show Me: Bootstrap CDN link in HTML head
<head>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <title>Mad Libs Form</title>
</head>
Show Me: Bootstrap form styling
<div class="container mt-5">
    <form method="GET" action="/create-mad-libs" class="row g-3">
        <div class="col-md-6">
            <label class="form-label">Name:</label>
            <input type="text" class="form-control" name="name">
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
</div>

✅ Check

  1. Open your webpage in a browser
  2. Your form should look styled and professional
  3. Inputs should have clean borders and padding
  4. Button should have Bootstrap button styling
  5. If styling doesn’t appear, check your Bootstrap CDN link