Choose a bootstrap 5.x webcomponent ->
Bootstrap Example
Bootstrap Component: Basicstructure
Basicstructure
Include bootstrap css and js script from CDN and create a div tagg with a boostrap container class.
Live Preview
My First Bootstrap Page
This part is inside a .container class.
The .container class provides a responsive fixed width container.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<!--The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).
The initial-scale=1 part sets the initial zoom level when the page is first loaded by the browser.
-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--include bootstrap cdn for css and javascript-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<!--use bootstrap container class
provides a responsive fixed width container
-->
<div class="container">
<h1>My First Bootstrap Page</h1>
<p>This part is inside a .container class.</p>
<p>The .container class provides a responsive fixed width container.</p>
</div>
</body>
</html>