Bootstrap5 Jumbotron
Jumbotron (large screen) creates a large gray background box in which you can set up some special content and information.
Introduced a jumbotron
To create a large background box to display someimportant information. In Bootstrap 5, it is no longer supported Jumbotron
. However, we can use the <div>
element to add some auxiliary classes and color classes to achieve the same effect:
Tip: Jumbotron can put some HTML tags, can also be Bootstrap elements.
Example
<div class="mt-4 p-5 bg-primary text-white rounded">
<h1>Rookie Tutorial</h1>
<p>Learning is not only about technology, but also about dreams!!!</p>
</div>