what is the difference between bootstrap.min.css and bootstrap.min.js ? Why bootstrap.min.js need to be included?
<link rel="stylesheet" href=".3.6/css/bootstrap.min.css">
and
<script src=".3.6/js/bootstrap.min.js"></script>
what is the difference between bootstrap.min.css and bootstrap.min.js ? Why bootstrap.min.js need to be included?
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn./bootstrap/3.3.6/css/bootstrap.min.css">
and
<script src="http://maxcdn.bootstrapcdn./bootstrap/3.3.6/js/bootstrap.min.js"></script>
Share
Improve this question
edited Mar 10, 2016 at 12:33
James Thorpe
32.2k6 gold badges75 silver badges94 bronze badges
asked Mar 10, 2016 at 12:31
vishwavishwa
551 silver badge3 bronze badges
0
5 Answers
Reset to default 6They're both minified versions of the plete Bootstrap style (CSS) and ponents (JS). You don't need to include the JS to use the Bootstrap styles (responsive grid, buttons, tables, typography, panels, etc..).
However, you do need to include the JS if you want to use the Bootstrap JavaScript ponents (modal, carousel, data-attributes, scrollspy, tooltop, etc..).
Bootstrap.min.css contains the CSS necessary for the Bootstrap to work correctly.
Some of the functionality offered by the bootstrap aren't possible though using only plain .css and this is where javascript es into play.
Bootstrap.min.js contains javascript code necessary for running Bootstrap.
.css is a stylesheet file and .js is javascript file
all javascript ponents of bootstrap are bundled into bootstrap.min.js
Well min.css obviously minifies the style for core bootstrap CSS while min.js minifies javascript modules. I think you should google some basic web tutorials before you start working with bootstrap.
You can need their own functions, check this: http://getbootstrap./javascript/