Bootstrap 5 hero section
A simple, centred hero with a heading, short text and two buttons that stack on phones.
Bootstrap · Bootstrap 5 hero sectionBeginner
<section class="py-5 text-center bg-light">
<div class="container py-4">
<h1 class="display-5 fw-bold">Build something great</h1>
<p class="lead col-lg-7 mx-auto">One short sentence that explains what you offer and who it is for.</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center mt-4">
<a href="#start" class="btn btn-primary btn-lg px-4">Get started</a>
<a href="#more" class="btn btn-outline-secondary btn-lg px-4">Learn more</a>
</div>
</div>
</section>bootstrapherolanding