Lists, Colors, Buttons
Lists, Colors, Buttons
Aim:
To create a web page demonstrating the use of unordered and ordered lists using Bootstrap 5.0
classes.
Procedure:
2. Include the Bootstrap 5.0 CSS link inside the <head> section.
4. Create an unordered list (<ul>) and style it using Bootstrap's list-group class.
5. Create an ordered list (<ol>) and style it using Bootstrap's list-group-numbered class
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap 5.0 Lists</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]
alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* Optional custom styles */ body {
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Bootstrap 5.0 Lists</h1>
<ul class="list-group">
<li class="list-group-item">Item 1</li>
<li class="list-group-item">Item 2</li>
<li class="list-group-item">Item 3</li>
</ul>
OUTPUT:
COLORS:
Aim:
To demonstrate the use of different Bootstrap 5.0 color classes for alert messages on a web page.
Procedure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap 5.0 Colors</title>
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/
bootstrap.min.css" rel="stylesheet">
<style>
/* Optional custom styles */ body {
padding: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Bootstrap 5.0 Colors</h1>
Aim:
Procedure:
2. Link the Bootstrap 5.0 CSS in the <head> section of the document.
4. Use Bootstrap button classes like btn btn-primary, btn btn-secondary, etc., to create buttons
with different styles.
5. Link the Bootstrap 5.0 JavaScript bundle (with Popper) before the closing </body> tag to
enable any interactive elements.
RESULT: