Installation
Pour fonctionner Bootstrap a besoin de certains éléments meta, d'une feuille CSS et de fichiers JavaScript.
Méthode : Intégration
Page de base :
1
2
<html lang="fr">
3
<head>
4
...
5
<!-- meta -->
6
<meta charset="utf-8">
7
<meta name="viewport" content="width=device-width, initial-scale=1">
8
...
9
<!-- Bootstrap CSS -->
10
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
11
...
12
</head>
13
<body>
14
<!-- Contenu de votre site -->
15
...
16
<!-- JavaScript -->
17
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
18
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js" integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/" crossorigin="anonymous"></script>
19
</body>
20
</html>
Pour plus d'info : https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/
Pour plus d'informations : https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/