Зміст курсу
Bootstrap Essentials for Modern Websites
Bootstrap Essentials for Modern Websites
Installing via NPM
Installing Bootstrap via NPM allows us to manage dependencies more efficiently and integrate Bootstrap into the project build process.
Here's how to install Bootstrap via NPM:
- In the terminal we should run the following command:
- After installing Bootstrap, we can include the Bootstrap CSS and JavaScript files in the HTML file or import them into the JavaScript files as needed;
- For example, we can import Bootstrap's CSS and JS in the main HTML file (e.g.,
index.html
) using:
Note
In this course, we will utilize CDN links to integrate Bootstrap features into the project. This method eliminates the necessity of managing complex dependencies.
However, if you prefer working on your local machine using NPM, that's perfectly acceptable. Subsequent topics will function identically regardless of how you connect Bootstrap to your project.
Дякуємо за ваш відгук!