quick-start.md 1.5 KB
Newer Older
1
2
3
4
---
layout: page
title: Quick start
---
5
6
7

Quickly add Bootstrap to your project via the [Bootstrap CDN](http://bootstrapcdn.com), graciously provided by the [MaxCDN](http://www.maxcdn.com/) folks. Copy-paste the stylesheet `<link>` into your `<head>` before all other stylesheets.

8
9
10
**Disabled for v4 during alpha releases.**

{% comment %}
11
12
13
14
{% highlight html %}
<link rel="stylesheet" href="{{ site.cdn.css }}">
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
15
Then, add the Bootstrap JavaScript—and jQuery—near the end of your pages. It's best placed right before the closing `</body>` tag. Be sure to place jQuery first as our code depends on it.
16
17

{% highlight html %}
Mark Otto's avatar
Mark Otto committed
18
<script src="{{ site.cdn.jquery }}"></script>
19
20
21
22
23
24
<script src="{{ site.cdn.js }}"></script>
{% endhighlight %}

Be sure to have your pages set up with the latest design and development standards. That means:

* Using an HTML5 doctype
Chris Rebert's avatar
Chris Rebert committed
25
* Forcing Internet Explorer to use its latest rendering mode ([read more]())
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
* And, utilizing the viewport meta tag.

Put it all together and your pages should look like this:

{% highlight html %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="{{ site.cdn.css }}">
  </head>
  <body>
    <h1>Hello, world!</h1>

Mark Otto's avatar
Mark Otto committed
41
    <script src="{{ site.cdn.jquery }}"></script>
42
43
44
45
46
47
    <script src="{{ site.cdn.js }}"></script>
  </body>
</html>
{% endhighlight %}

And that's it. Happy Bootstrapping!
48
{% endcomment %}