Where is the bootstrap script code placed?
bootstrap
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:
- At the bottom of the HTML document, create the
<script>
tag:
<script src="bootstrap.min.js"></script>
Copy after login
Among them, bootstrap.min.js
is the compressed Bootstrap JavaScript file.
- Place the
<script>
tag before the closing tag of the</body>
tag: