How to Use Bootstrap
There are two ways to start using Bootstrap on your own web site.
- Download Bootstrap from getbootstrap.com.
- Include Bootstrap from a CDN.
If you want to download and host Bootstrap yourself, go to getbootstrap.com, and follow the instructions there.
If you don't want to download and host Bootstrap yourself, you can include it from a CDN (Content Delivery Network).
Place bootstrap CDN link between <head> and </head>.
Advantage of using the Bootstrap CDN
Many users already have downloaded Bootstrap from MaxCDN when visiting another site. As a result, it will be loaded from the cache when they visit your site, which leads to faster loading time. Also, most CDN's will make sure that once a user requests a file from it, it will be served from the server closest to them, which also leads to faster loading time.
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body> <h1>My First Bootstrap Page</h1> <p>This is some text.</p> </body> </html>
My First Bootstrap Page
This is some text.