Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f

kuc-arc-f/icon.html

Created May 15, 2021
Embed
What would you like to do?
Bootstrap Icons / i tag sample
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" />
<title>Hello, world!</title>
</head>
<body>
<div class="container">
<h1>bootstrap 5 / icon</h1>
<hr />
<div class="icon_wrap">
<i class="bi bi-alarm"></i>
<i class="bi bi-book"></i>
<i class="bi bi-calendar"></i>
<i class="bi bi-folder"></i>
<i class="bi bi-forward"></i>
<i class="bi bi-house-fill"></i>
</div>
<hr />
</div>
<style>
.icon_wrap{ font-size: 2rem; }
</style>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment