shakira
shakira

Reputation: 125

How to call the bootstrap files without using CDN?

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.

Upvotes: 3

Views: 17444

Answers (3)

Sett Ran Naing
Sett Ran Naing

Reputation: 11

Once you download the file, you can include bootstrap.min.css file in the <head> and bootstrap.min.js in <body>. Even if you are using the downloaded bootstrap file, you have to include jquery.min.js and popper.min.js before loading bootstrap.min.js

Upvotes: 1

Santhosh BS
Santhosh BS

Reputation: 11

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>

Upvotes: 1

Anson VanDoren
Anson VanDoren

Reputation: 1066

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.

Upvotes: 3

Related Questions