Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,007 --> 00:00:01,008
- The link.
2
00:00:01,008 --> 00:00:04,005
Let's talk about how to make links on the web.
3
00:00:04,005 --> 00:00:07,006
These days, we take linking for granted.
4
00:00:07,006 --> 00:00:10,000
Of course we know we have navigation bars,
5
00:00:10,000 --> 00:00:13,008
menus of links, teaser cards, pages of article titles
6
00:00:13,008 --> 00:00:15,007
all begging us to click to see more,
7
00:00:15,007 --> 00:00:18,001
click to go elsewhere, it's normal.
8
00:00:18,001 --> 00:00:22,003
But back in the 1980s, people who were inventing new ways
9
00:00:22,003 --> 00:00:25,006
for computers to help us do our work were obsessed
10
00:00:25,006 --> 00:00:29,003
thinking about and talking about the link.
11
00:00:29,003 --> 00:00:32,008
Obsessed with hypertext, hypermedia, hyperlink.
12
00:00:32,008 --> 00:00:36,008
The very idea that there could be a special zone on a page
13
00:00:36,008 --> 00:00:40,001
that would be magically activated to teleport you
14
00:00:40,001 --> 00:00:42,006
to another place, another page.
15
00:00:42,006 --> 00:00:44,008
It was groundbreaking.
16
00:00:44,008 --> 00:00:48,000
It actually took over 20 years of theorizing
17
00:00:48,000 --> 00:00:53,002
and experimenting from the mid 1960s to the early 1990s
18
00:00:53,002 --> 00:00:55,007
before we ended up with the web.
19
00:00:55,007 --> 00:00:57,008
Even the fact that it's called the web
20
00:00:57,008 --> 00:01:01,003
is because of this obsession with how different parts
21
00:01:01,003 --> 00:01:06,002
link to other parts, creating a web.
22
00:01:06,002 --> 00:01:09,003
The code for creating a link is fairly simple.
23
00:01:09,003 --> 00:01:13,005
The way that the link transformed computing information
24
00:01:13,005 --> 00:01:18,004
and everything about our modern world is profound.
25
00:01:18,004 --> 00:01:21,007
To make a link, we use the A element.
26
00:01:21,007 --> 00:01:24,007
A stands for anchor.
27
00:01:24,007 --> 00:01:28,002
On the opening tag, we need an href attribute.
28
00:01:28,002 --> 00:01:31,002
H-R-E-F equals quote quote.
29
00:01:31,002 --> 00:01:35,003
This points to where we want the link to go.
30
00:01:35,003 --> 00:01:38,003
Href stands for Hypertext Reference.
31
00:01:38,003 --> 00:01:40,001
A nerdy phrase that's a throwback
32
00:01:40,001 --> 00:01:43,007
to all those conversations back in the 80s and 70s.
33
00:01:43,007 --> 00:01:46,004
Between the opening and closing A tags,
34
00:01:46,004 --> 00:01:49,001
put whatever it is that you want to be clickable.
35
00:01:49,001 --> 00:01:54,000
Usually text or an image or both, we start simple.
36
00:01:54,000 --> 00:01:55,008
With some words.
37
00:01:55,008 --> 00:01:57,009
Here, we can see the results.
38
00:01:57,009 --> 00:02:01,005
The phrase, this is a link, is now a link.
39
00:02:01,005 --> 00:02:05,006
If we click on it, it goes to the website at example.com.
40
00:02:05,006 --> 00:02:09,000
By default, the A element is an inline element.
41
00:02:09,000 --> 00:02:11,007
And it easily goes in the midst of the flow
42
00:02:11,007 --> 00:02:13,005
of some text, like this.
43
00:02:13,005 --> 00:02:15,009
You can see here, here's a paragraph
44
00:02:15,009 --> 00:02:19,006
with the link element wrapped around the words with a link.
45
00:02:19,006 --> 00:02:22,005
We can wrap links around anything, not just text.
46
00:02:22,005 --> 00:02:25,000
Here's a link wrapped around the image element.
47
00:02:25,000 --> 00:02:26,006
We could format our code to make it
48
00:02:26,006 --> 00:02:28,008
a little easier to understand.
49
00:02:28,008 --> 00:02:33,002
Now, if I click on this image, it also goes to example.com.
50
00:02:33,002 --> 00:02:36,001
You can also put a link around more complex content
51
00:02:36,001 --> 00:02:37,007
like a teaser card.
52
00:02:37,007 --> 00:02:41,002
We can wrap it A element around several other elements
53
00:02:41,002 --> 00:02:45,004
creating a whole group of things that all become linked.
54
00:02:45,004 --> 00:02:49,008
That's how the A element and the href attribute work.
55
00:02:49,008 --> 00:02:53,001
Now, let's look a little more deeply into the URL
56
00:02:53,001 --> 00:02:56,000
that we put into the href attribute.
57
00:02:56,000 --> 00:03:02,001
I was just using HTTPS://example.com.
58
00:03:02,001 --> 00:03:07,000
Let's talk about the wide variety of what can go in there.
59
00:03:07,000 --> 00:03:10,000
If you are linking to something out on the web someplace
60
00:03:10,000 --> 00:03:12,008
or some other website, you can create the link
61
00:03:12,008 --> 00:03:15,006
by putting the whole URL in the slot.
62
00:03:15,006 --> 00:03:17,008
It doesn't actually matter whether you include
63
00:03:17,008 --> 00:03:23,005
the trailing slash or not.
64
00:03:23,005 --> 00:03:26,004
Some URLs point to the home page of a site.
65
00:03:26,004 --> 00:03:29,001
Others point to content deeper in.
66
00:03:29,001 --> 00:03:33,003
All of these are what's called an absolute URL.
67
00:03:33,003 --> 00:03:37,004
You point to a specific place on the web, an absolute place.
68
00:03:37,004 --> 00:03:44,007
You must include the HTTP or the HTTPS in an absolute URL.
69
00:03:44,007 --> 00:03:46,008
When we use a modern browser these days,
70
00:03:46,008 --> 00:03:49,001
we can get away with just typing example.com
71
00:03:49,001 --> 00:03:52,004
up in the URL bar and the browser will fill in the rest.
72
00:03:52,004 --> 00:03:54,007
But when we make a link as a developer
73
00:03:54,007 --> 00:03:57,001
or someone adding content to the website,
74
00:03:57,001 --> 00:04:04,003
we need that HTTPS:// or HTTPS:// part.
75
00:04:04,003 --> 00:04:08,003
HTTP stands for Hypertext Transport Protocol.
76
00:04:08,003 --> 00:04:11,005
Another nerdy phrase from the 1980s.
77
00:04:11,005 --> 00:04:13,001
This is a way that everything on the web
78
00:04:13,001 --> 00:04:15,004
talks to everything else.
79
00:04:15,004 --> 00:04:19,002
The protocol, the rules of the communication system.
80
00:04:19,002 --> 00:04:21,007
It's one of the most important things that got invented
81
00:04:21,007 --> 00:04:23,003
when the web was invented.
82
00:04:23,003 --> 00:04:29,002
So what's the difference between HTTP and HTTPS?
83
00:04:29,002 --> 00:04:32,002
Well the S stands for Secure.
84
00:04:32,002 --> 00:04:35,008
Originally, all web addresses were HTTP.
85
00:04:35,008 --> 00:04:39,004
Today, all the experts agree every website
86
00:04:39,004 --> 00:04:43,007
should be using HTTPS instead.
87
00:04:43,007 --> 00:04:45,001
That's how to make a link
88
00:04:45,001 --> 00:04:49,000
using an absolute URL as your path.
6756
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.