All language subtitles for 064 Installing Bootstrap.en_US

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Now, in the last lesson we spoke about all the amazing things that you can do with Bootstrap, and how

generally awesome it is.

So in this lesson I want to show you how exactly do you get access to this awesome library.

How do you install it into your web site projects?

So, to do that, let's head into Atom, and let's add our Web Development project folder in here, so that

we can create a new folder called Bootstrap-installation.

And inside this folder I'm going to create a new file called index.html.

Now that we have this new web site, we can go ahead and create the html boilerplate, and give our web site

a title, Bootstrap Installation, and under the title, which is usually where we put in our links that linked

to our stylesheets, for example, this is where we can add the Bootstrap framework.

So if you head over to getbootstrap.com, you'll see that they've got a whole page that's dedicated

to how you can install Bootstrap, and it's super super easy.

So, the simplest way is just to copy the BootstrapCDN and paste it into here, and all that this does

is that when your browser reads through this code to try and load up the web site, once it gets to

this line, it goes over to this

URL and downloads the Bootstrap files

if the user doesn't already have it cached on their browser.

So I just want to quickly explain, firstly, what a CDN is.

So CDN stands for Content Delivery Network, and the concept is really simple.

So, do you remember how previously we looked at how the Internet is delivered through all of these submarine

cables,

right?

So, for example, if the server for my web site is in the US, say, in the West Coast, and I try to access

my web site from the UK, then I would probably need to go through one of these transatlantic cables, and

then there’ll be some more wires that goes across the land,

and that request reaches my server over here. And then once that request is received, then it has to send

back all of those files, the HTML, the CSS, the Javascript, back through all of those routes and back to

me, to my browser, so that it can be displayed on my web site.

Now, as you can imagine, if that is the only location where your web site exists, then that's quite a long

route to travel.

And even though these are pretty fast cables, it still generates a delay of, you know, maybe a few milliseconds,

or if there's a lot of data that I need to fetch over, like images or videos, there might be a delay of

a few seconds, and, I don't know about you, but I generally don't wait for a web site to load beyond maybe

like two seconds, at which point I presume,

oh, you know, it's probably down or there's probably some problems.

So this is where a Content Delivery Network comes in.

So instead of hosting your web site just in a single location, say over here, you actually have a whole

bunch of points where that web site can be accessed.

So that means that if my request starts off from the UK, then it will look for the location that is the

shortest distance to get that web site delivered. And that dramatically cuts down on the latency, or how

long it takes for your web site to load up.

And in terms of Bootstrap, they've hosted their Bootstrap CSS files on MaxCDN, which has a whole number

of routing points across the world.

So that means when your users are trying to load up your web site that's using Bootstrap, then it can

access it relatively quickly no matter where in the world they are.

So that's a quick lowdown on CDN.

And that means that when your browser reaches this link, it'll look for the shortest route to download

this CSS file

if the user doesn't already have it. Now, because Bootstrap is one of the most popular frameworks that

a lot of modern web sites will have, then it's very very likely that your users will have already downloaded

this CSS file because they've loaded up a web site that uses the same file.

And when that happens your browser actually caches it,

so it saves the local copy

so you don't have to download it every single time.

And that's one of the other advantages of working with Bootstrap. Because it's so common, because it's

so popular, your users will probably already have this file on their browser cache,

then it will again cut down on the latency.

So now this is one way of installing Bootstrap onto our web site.

And now if I go ahead and add a h1 for example, then you'll see that it gets styled using the Bootstrap

framework.

So let's copy the full path,

go to our browser and paste this in.

You can see that this font is different.

So say if I go ahead and comment this out, so I'm going to highlight this line and select command /

or control / on Windows, hit save, and we go back over here and we refresh, then you can

see this is our default HTML styling, which is this Serif font that looks kind of ugly, but with Bootstrap

it looks a little bit nicer.

Now, the other way that you can add Bootstrap to your web site, especially if you're creating a web site

from scratch, is to just copy and use their starter template.

You can see that it's got the HTML5 declaration.

It's got all of the things that you normally need in your web site,

the character set, the Bootstrap CSS,

it’s got a title already added for you, the body, the h1, which you can delete if you don't need.

And then at the bottom it's got some Bootstrap Javascript and jQuery.

Now we're going to be learning about Javascript and jQuery in in the next modules,

but for some of the components in Bootstrap to work they actually need some Javascript.

So for example if something has to change in appearance on your web site,

so, for example, like a dropdown menu,

then this actually needs a little bit more code than just HTML and CSS, because this is kind of a functionality,

right?

And that's what this Javascript and jQuery is going to help achieve.

So if you wanted the complete set and for everything that you'll implement in Bootstrap to work, then

the easiest way is just to simply paste in the starter template and now you will have everything that

you need in order to start using Bootstrap.

Now the third way of installing Bootstrap is to simply download the CSS and Javascript source code

so that you can include it into your web site.

So instead of pointing to a URL on the Internet, you can point to a relative URL that will be included

with your web site.

So, for example, you might say, you know, go into this CSS folder and find a

bootstrap.css.

And this is what I want to use for my web site instead.

Now the downside to this is that this negates any sort of caching that a user will have. Because this

is a completely separate file,

the browsers will not recognize this and will not know that it's already been downloaded and already

been cached, so we will have to download all of these files when it tries to load up your web site, which

leads to possibly a little bit more latency.

So throughout this course we'll be working with the easiest way of using Bootstrap which is simply to

get it through the CDN.

And usually I tend to advise just when you're starting out creating the web site using Bootstrap

is just to load up the example code

and this means that you'll have everything in there ready to go

and it was only one copy and paste away.

So that's my recommendation,

but of course it's completely up to you how you decide to do it. In the next lesson,

we’re going to look closer at how we can design our web site and start replicating the designs using

Bootstrap.

So I'll see you there.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.