The Bootstrap JavaScript script should be placed at the bottom of the document, before the end of the <body> tag: Create a <script> tag that contains the path to bootstrap.min.js. Placing the <script> tag before the end of the </body> tag will help the page load faster.
Placement of Bootstrap script code
Bootstrap JavaScript script is usually placed at the bottom of the HTML document, <body>
before the closing tag of the tag.
Specific steps:
<script>
tag: <script src="bootstrap.min.js"></script>
Among them, bootstrap.min.js
is the compressed Bootstrap JavaScript file.
<script>
tag before the closing tag of the </body>
tag: