Bootstrap/Getting started

From Computernewb Wiki
Jump to navigation Jump to search

<< Back to Bootstrap

Getting started with Bootstrap is fairly easy. You can install it via NPM, or directly include the CSS and JavaScript in your HTML file.

via NPM

You can install Bootstrap via your npm package manager just by typing this command:

npm install [email protected]

Inserting it into HTML

This is the recommended way of installing Bootstrap. Insert these tags into the <head> of your HTML file.

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>