Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,005 --> 00:00:03,000
- The Web is made out of three programming languages,
2
00:00:03,000 --> 00:00:05,005
HTML, CSS and Javascript.
3
00:00:05,005 --> 00:00:08,007
HTML stands for HyperText Markup Language.
4
00:00:08,007 --> 00:00:12,002
HTML marks up the content of a site.
5
00:00:12,002 --> 00:00:16,006
Basically it tells the user's computer what things are.
6
00:00:16,006 --> 00:00:19,008
It also provides access to an incredible amount
7
00:00:19,008 --> 00:00:22,006
of functionality that's already built directly
8
00:00:22,006 --> 00:00:24,002
into the browser.
9
00:00:24,002 --> 00:00:26,007
You can call up that functionality
10
00:00:26,007 --> 00:00:29,005
through using certain HTML.
11
00:00:29,005 --> 00:00:32,002
CSS stands for Cascading Style Sheets.
12
00:00:32,002 --> 00:00:34,008
CSS provides visual styling and layout
13
00:00:34,008 --> 00:00:36,007
for everything on the web page.
14
00:00:36,007 --> 00:00:39,006
It makes each web page look the way that it looks,
15
00:00:39,006 --> 00:00:42,001
color, typography and size.
16
00:00:42,001 --> 00:00:44,001
And we can add simply animations
17
00:00:44,001 --> 00:00:46,008
and interactions through CSS.
18
00:00:46,008 --> 00:00:49,002
JavaScript is a programming language that provides
19
00:00:49,002 --> 00:00:52,005
the ability to create more powerful interactivity.
20
00:00:52,005 --> 00:00:55,005
The more complex and rich an interface becomes,
21
00:00:55,005 --> 00:00:57,006
the more likely that JavaScript is used to make
22
00:00:57,006 --> 00:01:00,009
that experience seamless for the site's users.
23
00:01:00,009 --> 00:01:04,004
This can be confusing or frustrating for some coders.
24
00:01:04,004 --> 00:01:07,000
Why does the Web use multiple programming languages?
25
00:01:07,000 --> 00:01:08,006
Why can't we just have one?
26
00:01:08,006 --> 00:01:12,008
Well, the Web is different than other types of software.
27
00:01:12,008 --> 00:01:16,000
You can code a website today and expect that it will
28
00:01:16,000 --> 00:01:21,000
still work in five years or 10 years, without any updates.
29
00:01:21,000 --> 00:01:23,003
You can easily write your code so that it works
30
00:01:23,003 --> 00:01:27,009
on an old computer or an old browser from 10 years ago.
31
00:01:27,009 --> 00:01:32,000
The Web runs on Mac, Windows, iOS, Android,
32
00:01:32,000 --> 00:01:33,009
Linux, other mobile OS's,
33
00:01:33,009 --> 00:01:38,004
Ebook readers, game consoles, televisions, watches.
34
00:01:38,004 --> 00:01:42,002
There's a wide diversity of devices that run HTML,
35
00:01:42,002 --> 00:01:46,000
CSS and JavaScript in some form or fashion.
36
00:01:46,000 --> 00:01:49,001
That was the entire point of the Web,
37
00:01:49,001 --> 00:01:51,006
the reason it was invented.
38
00:01:51,006 --> 00:01:54,003
To provide a way for humanity to share content,
39
00:01:54,003 --> 00:01:57,009
even when our computers are different from each other.
40
00:01:57,009 --> 00:02:00,007
It's pretty remarkable.
41
00:02:00,007 --> 00:02:04,002
This is made possible by having three different kinds
42
00:02:04,002 --> 00:02:08,003
of programming languages, each doing part of the job.
43
00:02:08,003 --> 00:02:11,005
HTML is simple in its structure.
44
00:02:11,005 --> 00:02:15,006
There is no programming logic, no loops or functions.
45
00:02:15,006 --> 00:02:19,005
Instead, HTML is what's called a declarative language.
46
00:02:19,005 --> 00:02:21,005
The code simply declares,
47
00:02:21,005 --> 00:02:23,000
Hey, that's a paragraph!
48
00:02:23,000 --> 00:02:24,003
Hey, make this a link!
49
00:02:24,003 --> 00:02:27,000
Hey, put a form field right here!
50
00:02:27,000 --> 00:02:28,007
It's all vocabulary.
51
00:02:28,007 --> 00:02:31,003
It's all declarations.
52
00:02:31,003 --> 00:02:34,006
It's the simplicity in HTML that gives it its resilience
53
00:02:34,006 --> 00:02:36,005
and its robustness.
54
00:02:36,005 --> 00:02:38,004
If something is wrong with HTML,
55
00:02:38,004 --> 00:02:40,008
if something is missing or spelled wrong,
56
00:02:40,008 --> 00:02:43,008
HTML is like, eh, close enough.
57
00:02:43,008 --> 00:02:45,009
I'll just guess what they meant and fix it.
58
00:02:45,009 --> 00:02:48,000
I'll display this page anyway.
59
00:02:48,000 --> 00:02:52,002
HTML can take a lot of abuse and still deliver.
60
00:02:52,002 --> 00:02:54,008
CSS has a bit more logic to it.
61
00:02:54,008 --> 00:02:58,003
There's a bit more computer science structure there,
62
00:02:58,003 --> 00:03:01,000
which makes it a bit more fragile,
63
00:03:01,000 --> 00:03:03,008
and a bit more powerful.
64
00:03:03,008 --> 00:03:07,006
It does still have a tremendous amount of resilience.
65
00:03:07,006 --> 00:03:09,008
When something goes wrong in CSS,
66
00:03:09,008 --> 00:03:12,006
the browser will skip just that section of code
67
00:03:12,006 --> 00:03:15,000
and not apply that styling.
68
00:03:15,000 --> 00:03:18,000
But it will go on to apply the rest.
69
00:03:18,000 --> 00:03:20,001
It might not come out completely correct,
70
00:03:20,001 --> 00:03:24,004
the the browser will do its best and most of it will work.
71
00:03:24,004 --> 00:03:26,007
JavaScript is the most powerful.
72
00:03:26,007 --> 00:03:28,007
There are many things that JavaScript can do
73
00:03:28,007 --> 00:03:31,005
that HTML and CSS cannot do.
74
00:03:31,005 --> 00:03:33,008
But it's also the most fragile.
75
00:03:33,008 --> 00:03:35,006
If something's wrong with the code,
76
00:03:35,006 --> 00:03:39,001
or the browser is too old to know what that code means,
77
00:03:39,001 --> 00:03:40,004
the browser will stop.
78
00:03:40,004 --> 00:03:41,007
It gives up.
79
00:03:41,007 --> 00:03:43,004
It won't run that JavaScript.
80
00:03:43,004 --> 00:03:46,002
It doesn't want to start guessing what to do,
81
00:03:46,002 --> 00:03:48,007
which makes JavaScript more fragile.
82
00:03:48,007 --> 00:03:52,001
Having all three languages means that developers
83
00:03:52,001 --> 00:03:54,001
can combine these qualities.
84
00:03:54,001 --> 00:03:57,006
Resilience, robustness and power.
85
00:03:57,006 --> 00:04:00,001
It's quite remarkable.
86
00:04:00,001 --> 00:04:02,009
Do as much as possible in the more robust parts
87
00:04:02,009 --> 00:04:04,007
of the stack of these languages,
88
00:04:04,007 --> 00:04:08,005
and then use the rest of the stack to make the site better.
89
00:04:08,005 --> 00:04:13,000
If you can do something in HTML, then do it in HTML.
90
00:04:13,000 --> 00:04:16,004
If you can't, then use the other parts.
91
00:04:16,004 --> 00:04:20,003
All of this is to say that HTML is pretty great.
92
00:04:20,003 --> 00:04:23,003
It's worth taking the time to learn all the different
93
00:04:23,003 --> 00:04:25,004
HTML elements and attributes,
94
00:04:25,004 --> 00:04:29,000
so you can fully leverage what it has to offer.
6980
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.