Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,270 --> 00:00:02,890
Welcome back.
2
00:00:02,890 --> 00:00:06,400
So we started configuring our VS code editor
3
00:00:06,400 --> 00:00:09,900
in the very beginning of the course, but now at this point,
4
00:00:09,900 --> 00:00:13,420
we are ready to install three additional extensions
5
00:00:13,420 --> 00:00:15,910
that will make our lives a little bit easier
6
00:00:15,910 --> 00:00:18,167
as we code HTML and CSS.
7
00:00:20,260 --> 00:00:24,760
And so let's head over to our extensions panel here.
8
00:00:24,760 --> 00:00:27,890
And the first extension that I want to install here
9
00:00:27,890 --> 00:00:29,370
is called, Image
10
00:00:30,270 --> 00:00:31,143
preview.
11
00:00:32,200 --> 00:00:35,830
So it's this one and I already have it installed.
12
00:00:35,830 --> 00:00:38,263
So I just need to click on enable.
13
00:00:39,880 --> 00:00:41,220
Okay.
14
00:00:41,220 --> 00:00:42,660
So that's the first one.
15
00:00:42,660 --> 00:00:47,360
And what this one is going to do is that here in our HTML,
16
00:00:47,360 --> 00:00:52,360
it now displays this small image preview here in this gutter
17
00:00:52,490 --> 00:00:54,140
as it's called.
18
00:00:54,140 --> 00:00:56,430
So here we have this one
19
00:00:56,430 --> 00:01:00,420
and then this image here is also right here
20
00:01:00,420 --> 00:01:02,230
where we declare it.
21
00:01:02,230 --> 00:01:04,130
So where we include it in our code,
22
00:01:04,130 --> 00:01:07,750
and this can be extremely helpful sometimes.
23
00:01:07,750 --> 00:01:10,633
So that's why I really wanted to show you this one.
24
00:01:13,290 --> 00:01:16,290
The next one that I want to show you is called
25
00:01:16,290 --> 00:01:19,010
color highlighter
26
00:01:19,010 --> 00:01:19,913
or highlight.
27
00:01:21,460 --> 00:01:22,930
So it's this one here
28
00:01:22,930 --> 00:01:25,090
and again, I already have it installed.
29
00:01:25,090 --> 00:01:26,483
I just enable it.
30
00:01:27,350 --> 00:01:29,980
And actually this one, I cannot show you yet
31
00:01:29,980 --> 00:01:34,470
what it looks like, because it will only be relevant in CSS.
32
00:01:34,470 --> 00:01:38,420
But trust me that this extension is really, really helpful
33
00:01:38,420 --> 00:01:40,923
for visualizing colors in CSS.
34
00:01:41,810 --> 00:01:46,640
Next up is an extension called auto rename
35
00:01:46,640 --> 00:01:47,473
tag
36
00:01:48,480 --> 00:01:50,020
So this one,
37
00:01:50,020 --> 00:01:53,973
and you see it's an extremely popular one, once again.
38
00:01:54,820 --> 00:01:57,720
So you have to download it and enable it.
39
00:01:57,720 --> 00:02:00,563
And then what happens here is that,
40
00:02:02,330 --> 00:02:04,940
when we changed the name of an element,
41
00:02:04,940 --> 00:02:08,930
let's say we actually wanted to make this one a div,
42
00:02:08,930 --> 00:02:13,093
then you see it automatically also changes the closing one.
43
00:02:13,980 --> 00:02:14,933
So the closing tag.
44
00:02:15,770 --> 00:02:16,603
Okay.
45
00:02:16,603 --> 00:02:18,530
And this again is extremely helpful
46
00:02:18,530 --> 00:02:22,780
it makes our life writing HTML a bit easier,
47
00:02:22,780 --> 00:02:26,300
because trust me, we need to do this all the time,
48
00:02:26,300 --> 00:02:28,713
like changing the element name.
49
00:02:29,580 --> 00:02:31,080
Okay.
50
00:02:31,080 --> 00:02:33,590
Now another thing that we need to do,
51
00:02:33,590 --> 00:02:35,960
or at least that we can do if we want,
52
00:02:35,960 --> 00:02:40,460
is to go back to our settings and then turn back
53
00:02:40,460 --> 00:02:42,980
on this setting that we deactivated
54
00:02:42,980 --> 00:02:45,330
at the beginning of the section.
55
00:02:45,330 --> 00:02:46,653
So that's the auto,
56
00:02:47,870 --> 00:02:50,030
let's spell that right.
57
00:02:50,030 --> 00:02:52,290
So auto close tag.
58
00:02:52,290 --> 00:02:56,280
So let's enable this back because I think at this point
59
00:02:56,280 --> 00:02:59,510
you will no longer make the mistake of forgetting
60
00:02:59,510 --> 00:03:01,010
a closing tag.
61
00:03:01,010 --> 00:03:05,423
And so now we can allow VS code to do that work for us.
62
00:03:06,290 --> 00:03:09,773
So for example, if we wanted to write a paragraph here.
63
00:03:11,070 --> 00:03:12,750
Then now you see HTML
64
00:03:12,750 --> 00:03:15,453
automatically close that element for us.
65
00:03:17,840 --> 00:03:20,290
Okay. But this we don't need,
66
00:03:20,290 --> 00:03:23,840
and now, we are going to install the most important
67
00:03:23,840 --> 00:03:26,410
and the most useful one of all,
68
00:03:26,410 --> 00:03:28,693
and that is called live server.
69
00:03:29,800 --> 00:03:31,403
So it's this one here,
70
00:03:32,280 --> 00:03:36,050
live server with almost 12 million downloads
71
00:03:36,050 --> 00:03:38,343
and this one is popular for a reason.
72
00:03:39,370 --> 00:03:42,260
So, I just click enable here
73
00:03:42,260 --> 00:03:43,513
and,
74
00:03:44,450 --> 00:03:46,430
so when I go now to my HTML
75
00:03:47,360 --> 00:03:50,140
and let's close this one down.
76
00:03:50,140 --> 00:03:52,430
So close down the sidebar.
77
00:03:52,430 --> 00:03:55,530
Now down here in this bar, we should have
78
00:03:55,530 --> 00:03:58,330
now this go live button.
79
00:03:58,330 --> 00:03:59,280
Okay.
80
00:03:59,280 --> 00:04:02,890
So hopefully after installing this live server extension,
81
00:04:02,890 --> 00:04:05,660
you can also see this button down here
82
00:04:05,660 --> 00:04:07,880
in this status bar.
83
00:04:07,880 --> 00:04:12,380
So when I now click this, then it starting
84
00:04:12,380 --> 00:04:16,990
and we get this message that server is started at
85
00:04:16,990 --> 00:04:18,143
this port number here.
86
00:04:19,140 --> 00:04:20,930
Let's close that.
87
00:04:20,930 --> 00:04:23,430
And you see it, that it opened a new tab,
88
00:04:23,430 --> 00:04:26,890
which contains our page, right?
89
00:04:26,890 --> 00:04:29,620
So basically it looks exactly the same,
90
00:04:29,620 --> 00:04:32,023
but there is one very big difference.
91
00:04:33,530 --> 00:04:34,650
So,
92
00:04:34,650 --> 00:04:35,593
let's,
93
00:04:37,240 --> 00:04:39,443
let's say we wanted to change this here.
94
00:04:40,670 --> 00:04:42,870
I'm going to call it JONAS CODE.
95
00:04:42,870 --> 00:04:47,870
And now, look closely what happens here as I save this file.
96
00:04:48,260 --> 00:04:51,853
So I hit command S now, or control S on windows.
97
00:04:53,010 --> 00:04:55,590
And you see what happened.
98
00:04:55,590 --> 00:04:58,460
It automatically reloaded the page
99
00:04:58,460 --> 00:05:00,803
without us having to do anything.
100
00:05:01,800 --> 00:05:04,090
So all we did was save to code
101
00:05:04,090 --> 00:05:07,590
and what will then happen is that this page here
102
00:05:07,590 --> 00:05:10,090
gets automatically updated.
103
00:05:10,090 --> 00:05:12,220
So all the changes that we did here
104
00:05:12,220 --> 00:05:16,000
will basically get injected into this page.
105
00:05:16,000 --> 00:05:17,550
And,
106
00:05:17,550 --> 00:05:19,930
now, we can then see the reflection
107
00:05:19,930 --> 00:05:21,483
of our changes immediately.
108
00:05:22,410 --> 00:05:23,680
So I put it back now.
109
00:05:23,680 --> 00:05:28,200
I hit again, command or control S to save it
110
00:05:28,200 --> 00:05:32,440
and immediately you see it going back to what it was before.
111
00:05:32,440 --> 00:05:34,990
Now if we wanted to stop this connection,
112
00:05:34,990 --> 00:05:36,980
once we are done developing,
113
00:05:36,980 --> 00:05:39,830
all we have to do is to click down here
114
00:05:39,830 --> 00:05:43,560
on this icon here where it says port 5500.
115
00:05:45,910 --> 00:05:49,070
And by the way, this port number is exactly what we have
116
00:05:49,070 --> 00:05:50,490
here.
117
00:05:50,490 --> 00:05:51,390
Okay.
118
00:05:51,390 --> 00:05:53,940
So just for the sake of curiosity,
119
00:05:53,940 --> 00:05:57,660
this one here means that it's a local host server.
120
00:05:57,660 --> 00:06:00,330
So basically it's like you have now a web server
121
00:06:00,330 --> 00:06:02,610
on your own computer running.
122
00:06:02,610 --> 00:06:06,580
And then we have actually this code running
123
00:06:06,580 --> 00:06:08,220
at this port number.
124
00:06:08,220 --> 00:06:09,350
And so this port,
125
00:06:09,350 --> 00:06:13,790
it's basically like a sub address of your web server.
126
00:06:13,790 --> 00:06:16,560
So of the local local host server,
127
00:06:16,560 --> 00:06:18,070
but this doesn't really matter.
128
00:06:18,070 --> 00:06:21,170
What matters is that this now works
129
00:06:21,170 --> 00:06:23,580
and it is really, really helpful
130
00:06:23,580 --> 00:06:26,070
for our development workflow.
131
00:06:26,070 --> 00:06:28,990
Now, if for some reason you could not make this work
132
00:06:28,990 --> 00:06:32,350
on your computer, then of course don't worry.
133
00:06:32,350 --> 00:06:34,920
So you can still do it the old way.
134
00:06:34,920 --> 00:06:37,890
So basically the way we have been doing it all along,
135
00:06:37,890 --> 00:06:39,410
up until this point.
136
00:06:39,410 --> 00:06:44,410
So you can just open up the file from your file system
137
00:06:44,500 --> 00:06:47,853
like we did, and then keep refreshing it manually.
138
00:06:48,820 --> 00:06:53,510
Right. But we, right now, no longer need this tab here
139
00:06:53,510 --> 00:06:56,040
because we now have our live connection.
140
00:06:56,040 --> 00:07:00,010
So we have our live server serving up this page
141
00:07:00,010 --> 00:07:02,143
whenever we do some edits.
142
00:07:02,990 --> 00:07:04,720
All right. And with that
143
00:07:04,720 --> 00:07:06,860
we are now ready to tackle
144
00:07:06,860 --> 00:07:09,370
or final less two coding challenges
145
00:07:09,370 --> 00:07:11,853
in this HTML fundamental section.
10089
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.