PDF download Download Article
Start using Bootstrap elements in your code with this handy guide
PDF download Download Article

This wikiHow teaches you how to download the Bootstrap files to your computer, and link them to your HTML texts to use Bootstrap elements in your code. Once you download and link the Bootstrap files, you can start using all the stylesheet and JavaScript elements of Bootstrap in your web design.

Things You Should Know

  • Open the Bootstrap website in your internet browser and click Download.
  • Download the Bootstrap files as a ZIP archive and extract them from the folder.
  • Move the extracted files to the same folder as your HTML files to link them.
  1. Type https://getbootstrap.com into the address bar, and press Enter or Return on your keyboard.
  2. This will open the "Download" page.
    Advertisement
  3. " This will download the complete Bootstrap files to your computer as a ZIP archive.
    • If you're prompted, select a saving location for the Bootstrap ZIP.
  4. Find the ZIP file you just downloaded, and double-click on it to extract all the files in it to the same folder.
    • This will extract two folders named "css" and "js."
    • If your unzipper app does not automatically extract the files, check out this article to see all the ways you can export a ZIP archive.
  5. Open the folder that contains all your website's HTML files, and drag the "css" and "js" folders here to move them to the same folder as your website documents.
    • You can now link the files to your HTML files, and start using Bootstrap in your code.
  6. You can use Bootstrap in only one of your HTML files, or all of them.
  7. A sub-menu will pop up with compatible apps.
  8. This will open the selected HTML file in your text editor.
  9. Before using Bootstrap code in your HTML, you'll have to type or paste the lines below to the header of your code:
    • <link rel="stylesheet" a href="css/bootstrap.css"/>
    • <script src="js/bootstrap.js/>
    • If you want to link and use some of the other files from the css and js folders, just add new lines into the header, and replace the css/bootstrap.css and js/bootstrap.js parts with the names of the files you want to link.
  10. In the HTML's header, both lines should be located between the <meta> lines and the <title> line.
    • Once you add these lines to the header, you can start using Bootstrap elements in this HTML file.
    • You can find a full list of all Bootstrap elements at https://getbootstrap.com/docs/4.3/getting-started/introduction. Just click any category like Layout or Components on the left-menu.
    • Once you install Bootstrap, you can insert or copy/paste any piece of code from here to your own code.
  11. Advertisement


Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

Edit HTML FilesEdit HTML Files
Learn Web DesignLearn Web Design
Install Spring Boot in Eclipse Install Spring Boot in Eclipse
Unzip a File Unzip a File on Any Device: Easy Step-by-Step Guide
Open a .Zip File Without WinzipOpen ZIP Files on Windows, Mac, Chromebook, Linux, or Mobile
Create a Simple CSS Stylesheet Using NotepadCreate a Simple CSS Stylesheet Using Notepad
Open a Zip File Open a Zip File: 4 Easy Step-by-Step Methods
Run a HTML File Open and Run an HTML File: Step-by-Step Guide
Make a File Downloadable from Your WebsiteMake a File Downloadable from Your Website
Write HTML CodeWrite HTML Code
Create a Simple Webpage Using Notepad Create a Simple Webpage Using Notepad
Learn HTMLLearn HTML
Add a Hyperlink with HTMLCode a Hyperlink with HTML: A Beginner's How-To Guide
Create a Dropdown Menu in HTML and CSSCreate a Dropdown Menu in HTML and CSS
Advertisement

About This Article

wikiHow Staff
Co-authored by:
wikiHow Staff Writer
This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards. This article has been viewed 50,552 times.
How helpful is this?
Co-authors: 3
Updated: May 11, 2023
Views: 50,552
Categories: HTML
Article SummaryX

1. Open https://getbootstrap.com.
2. Click Download.
3. Click Download below "Compiled CSS and JS."
4. Extract the files from the ZIP file.
5. Move the extracted folders to your website folder.
6. Open your HTML in a code editor.
7. Add "'" to the header.
8. Add "

Did this summary help you?

Thanks to all authors for creating a page that has been read 50,552 times.

Is this article up to date?

Advertisement