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