I have downloaded the bootstrap folder from the site. And i have a folder named demoproject on my desktop and in that the bootstrap folder is present. How should i call these bootstrap files without using CDN so it runs without internet connection.
Just make sure that the lines in your HTML file that look like this:
<link href="css/bootstrap.min.css" rel="stylesheet">
and
<script src="js/bootstrap.min.js"></script>
are pointing to your local files (similar to shown above) and not to the CDN.
Bootstrap with CDN
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
Bootstrap with out CDN
<link rel="stylesheet" href="foldername/bootstrap.min.css">
<script src="foldername/bootstrap.min.js"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With