All language subtitles for 006 Your Very First Webpage!.en_US

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
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 Download
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
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,760 --> 00:00:03,430 Welcome back. 2 00:00:03,430 --> 00:00:06,880 Let's now write our very first line of code 3 00:00:06,880 --> 00:00:09,390 and build our very first 4 00:00:09,390 --> 00:00:11,743 and very small webpage. 5 00:00:13,670 --> 00:00:16,480 So here we are back in VS Code, 6 00:00:16,480 --> 00:00:19,412 and let's now close all of this up, 7 00:00:19,412 --> 00:00:22,430 and then we're going here to this first tab. 8 00:00:22,430 --> 00:00:23,973 So this Explorer tab. 9 00:00:25,090 --> 00:00:26,360 So in VS Code, 10 00:00:26,360 --> 00:00:29,620 we always need to be inside of some folder. 11 00:00:29,620 --> 00:00:32,860 And that folder is called the project folder. 12 00:00:32,860 --> 00:00:34,410 Now, right now we don't have 13 00:00:34,410 --> 00:00:36,350 any folders started yet. 14 00:00:36,350 --> 00:00:39,120 And so let's actually start by doing that 15 00:00:39,120 --> 00:00:41,100 and I will create a folder 16 00:00:41,100 --> 00:00:42,833 right here on my desktop. 17 00:00:43,750 --> 00:00:45,730 So basically I will do all the, 18 00:00:45,730 --> 00:00:47,570 all the coding will always happen 19 00:00:47,570 --> 00:00:49,220 here on my desktop, 20 00:00:49,220 --> 00:00:51,000 but of course you can also do it 21 00:00:51,000 --> 00:00:53,910 in any other place on your computer. 22 00:00:53,910 --> 00:00:55,500 This one doesn't really matter, 23 00:00:55,500 --> 00:00:56,800 for me, it's just easier 24 00:00:56,800 --> 00:00:59,890 to have it on the desktop. 25 00:00:59,890 --> 00:01:01,490 And I'm calling this folder here 26 00:01:02,440 --> 00:01:04,913 01 and Test. 27 00:01:06,650 --> 00:01:07,950 Okay. 28 00:01:07,950 --> 00:01:09,030 So let's go back here 29 00:01:09,030 --> 00:01:11,503 and now click on open folder. 30 00:01:12,430 --> 00:01:14,650 And so going to my desktop, 31 00:01:14,650 --> 00:01:16,750 I will now select this folder 32 00:01:16,750 --> 00:01:18,660 that I just created. 33 00:01:18,660 --> 00:01:23,660 And so this 01 Test is now our project folder. 34 00:01:25,060 --> 00:01:25,893 So you see, 35 00:01:25,893 --> 00:01:27,850 we get a new welcome screen 36 00:01:27,850 --> 00:01:30,570 and here we can click on new file 37 00:01:30,570 --> 00:01:34,150 to add our very first file to the project. 38 00:01:34,150 --> 00:01:35,710 Or we could also do this 39 00:01:35,710 --> 00:01:38,710 by hovering here over this left sidebar 40 00:01:38,710 --> 00:01:42,390 and clicking here on the new file icon. 41 00:01:42,390 --> 00:01:43,870 So these are two different ways 42 00:01:43,870 --> 00:01:47,190 of creating new files in the project folder. 43 00:01:47,190 --> 00:01:50,650 And I actually prefer this one here. 44 00:01:50,650 --> 00:01:52,410 So we are about to create 45 00:01:52,410 --> 00:01:54,790 our very first webpage 46 00:01:54,790 --> 00:01:58,783 and a webpage is basically just an HTML file, 47 00:01:59,650 --> 00:02:03,890 and let's call it index.html. 48 00:02:03,890 --> 00:02:06,100 So it's basically just the file 49 00:02:06,100 --> 00:02:09,560 with the HTML file extension. 50 00:02:09,560 --> 00:02:11,320 And we are calling it index 51 00:02:11,320 --> 00:02:13,920 because that is the default name 52 00:02:13,920 --> 00:02:17,170 of the first page of any website. 53 00:02:17,170 --> 00:02:19,400 So index is basically always 54 00:02:19,400 --> 00:02:22,040 the entry point to any website. 55 00:02:22,040 --> 00:02:23,820 And so all web projects 56 00:02:23,820 --> 00:02:26,823 always need to have an index.html. 57 00:02:27,940 --> 00:02:29,890 All right. So keep that in mind, 58 00:02:29,890 --> 00:02:34,890 always call your very first page index.html. 59 00:02:35,100 --> 00:02:38,070 Now my goal in this lecture is not yet 60 00:02:38,070 --> 00:02:40,490 to really teach you HTML. 61 00:02:40,490 --> 00:02:41,323 Right now, 62 00:02:41,323 --> 00:02:44,570 all I want to do is to create this file 63 00:02:44,570 --> 00:02:47,320 and to add a little bit of code to it 64 00:02:47,320 --> 00:02:49,870 and then see the results in the browser. 65 00:02:49,870 --> 00:02:51,390 Just so you get to write 66 00:02:51,390 --> 00:02:53,130 your first line of code 67 00:02:53,130 --> 00:02:55,300 and are able to see the results 68 00:02:55,300 --> 00:02:58,740 of writing that code in a real web browser. 69 00:02:58,740 --> 00:03:01,950 So again, I'm not really starting to teach HTML 70 00:03:01,950 --> 00:03:03,150 just yet. 71 00:03:03,150 --> 00:03:06,840 And so instead of writing a whole page structure, 72 00:03:06,840 --> 00:03:08,550 as we usually need to, 73 00:03:08,550 --> 00:03:10,820 we are going to use a small cheat 74 00:03:10,820 --> 00:03:13,040 that we can use in VS Code. 75 00:03:13,040 --> 00:03:16,223 So to do that, just write an exclamation mark. 76 00:03:17,260 --> 00:03:18,710 So just like this, 77 00:03:18,710 --> 00:03:21,680 and then you can hit tab on your keyboard, 78 00:03:21,680 --> 00:03:24,363 or you can also just click here. 79 00:03:25,610 --> 00:03:26,443 And with that, 80 00:03:26,443 --> 00:03:28,220 we get this very basic 81 00:03:28,220 --> 00:03:31,700 and almost empty HTML structure. 82 00:03:31,700 --> 00:03:35,370 So it has a head and it has a body. 83 00:03:35,370 --> 00:03:36,203 But once again, 84 00:03:36,203 --> 00:03:37,790 we will learn all about that 85 00:03:37,790 --> 00:03:39,210 a little bit later. 86 00:03:39,210 --> 00:03:41,090 For now, all I'm interested here 87 00:03:41,090 --> 00:03:45,380 is for now this title of the webpage. 88 00:03:45,380 --> 00:03:47,150 So let's change the content here 89 00:03:47,150 --> 00:03:49,917 of this title to, for example, 90 00:03:49,917 --> 00:03:52,890 "My first webpage." 91 00:03:52,890 --> 00:03:54,950 But of course you can also write 92 00:03:54,950 --> 00:03:56,520 something else here 93 00:03:56,520 --> 00:03:59,590 and then let's go inside of the body. 94 00:03:59,590 --> 00:04:01,130 So this is actually the part 95 00:04:01,130 --> 00:04:02,610 that we will be able to see 96 00:04:02,610 --> 00:04:04,050 in the browser. 97 00:04:04,050 --> 00:04:08,870 And here, just write this less than sign. 98 00:04:08,870 --> 00:04:12,550 Then H1, which stands for heading one 99 00:04:12,550 --> 00:04:15,020 and then the greater than symbol. 100 00:04:15,020 --> 00:04:17,990 So just like this one here, 101 00:04:17,990 --> 00:04:20,280 and you see that then VS Code 102 00:04:20,280 --> 00:04:22,583 actually automatically placed 103 00:04:22,583 --> 00:04:25,270 this other part here. 104 00:04:25,270 --> 00:04:28,520 So closing the H1 basically. 105 00:04:28,520 --> 00:04:29,353 But again, 106 00:04:29,353 --> 00:04:31,030 that doesn't really matter for now. 107 00:04:31,030 --> 00:04:33,680 Let's just write some text content in here 108 00:04:33,680 --> 00:04:36,420 and I'm writing, "Hello, world!" 109 00:04:36,420 --> 00:04:38,200 which has kind of a standard 110 00:04:38,200 --> 00:04:41,170 when you write your very first line of code 111 00:04:41,170 --> 00:04:43,590 in any programming language. 112 00:04:43,590 --> 00:04:45,571 So hello world is really 113 00:04:45,571 --> 00:04:48,060 a long standing tradition. 114 00:04:48,060 --> 00:04:50,430 Next let's try another one. 115 00:04:50,430 --> 00:04:53,690 So again, this less than symbol. 116 00:04:53,690 --> 00:04:57,810 Now let's try P which stands for paragraph. 117 00:04:57,810 --> 00:04:58,643 And then again, 118 00:04:58,643 --> 00:05:00,860 VS Code automatically closes 119 00:05:00,860 --> 00:05:02,103 the paragraph for us. 120 00:05:03,360 --> 00:05:06,090 So let's say, "My name is Jonas." 121 00:05:06,090 --> 00:05:09,352 And you will of course use your own name, 122 00:05:09,352 --> 00:05:13,570 "And this is my very first 123 00:05:15,651 --> 00:05:17,067 webpage." 124 00:05:18,010 --> 00:05:19,060 Okay. 125 00:05:19,060 --> 00:05:20,560 Now we can give it a save 126 00:05:20,560 --> 00:05:23,180 by hitting command or control S 127 00:05:24,040 --> 00:05:28,120 or you can go here to the file menu as well. 128 00:05:28,120 --> 00:05:31,150 And we also have the auto save active. 129 00:05:31,150 --> 00:05:34,110 So if we just leave this tab, so for example, 130 00:05:34,110 --> 00:05:35,970 by clicking outside here, 131 00:05:35,970 --> 00:05:39,410 then it will also automatically save the file. 132 00:05:39,410 --> 00:05:41,023 So let's actually try that. 133 00:05:42,540 --> 00:05:43,733 And here we go. 134 00:05:44,780 --> 00:05:46,970 So now the file has been saved, 135 00:05:46,970 --> 00:05:48,660 and maybe you also noticed 136 00:05:48,660 --> 00:05:50,300 that the formatting has changed 137 00:05:50,300 --> 00:05:51,510 here a little bit, 138 00:05:51,510 --> 00:05:53,040 and this happened because 139 00:05:53,040 --> 00:05:54,790 of the Prettier extension that 140 00:05:54,790 --> 00:05:56,890 we installed in the last video. 141 00:05:56,890 --> 00:05:59,370 So remember that the Prettier extension 142 00:05:59,370 --> 00:06:01,591 is to format or code automatically 143 00:06:01,591 --> 00:06:03,680 whenever we save it. 144 00:06:03,680 --> 00:06:06,740 And so that is exactly what just happened. 145 00:06:06,740 --> 00:06:09,840 So let's just add some spaces here 146 00:06:09,840 --> 00:06:14,320 and now if I hit command or control S again, 147 00:06:14,320 --> 00:06:16,250 then you'll see it put it back 148 00:06:16,250 --> 00:06:17,723 in the correct place. 149 00:06:18,800 --> 00:06:19,720 All right. 150 00:06:19,720 --> 00:06:21,700 And so that's the power of Prettier 151 00:06:21,700 --> 00:06:24,130 and it will ensure that your code 152 00:06:24,130 --> 00:06:25,460 should always look the same 153 00:06:25,460 --> 00:06:27,590 as this code in the video. 154 00:06:27,590 --> 00:06:28,423 Great. 155 00:06:28,423 --> 00:06:31,960 So we just wrote our very first line of code, 156 00:06:31,960 --> 00:06:35,100 or actually, our first two lines of code. 157 00:06:35,100 --> 00:06:38,460 And so now we have this index.html file 158 00:06:38,460 --> 00:06:41,710 and we can open it up in a browser. 159 00:06:41,710 --> 00:06:43,730 So let's go to our project folder 160 00:06:43,730 --> 00:06:46,410 where this file is located. 161 00:06:46,410 --> 00:06:49,203 And in my case, remember, that's on the desktop. 162 00:06:50,570 --> 00:06:52,360 So I can just open it. 163 00:06:52,360 --> 00:06:55,353 And now here we have that index.html file 164 00:06:55,353 --> 00:06:58,750 that we created previously in VS Code. 165 00:06:58,750 --> 00:07:01,530 And to now open it up in Google Chrome 166 00:07:01,530 --> 00:07:03,290 or in any other browser, 167 00:07:03,290 --> 00:07:05,660 we just need to double click the file, 168 00:07:05,660 --> 00:07:08,020 or we can just also right, click it 169 00:07:08,020 --> 00:07:10,880 and then open with a Google Chrome. 170 00:07:10,880 --> 00:07:12,370 So let's do that. 171 00:07:12,370 --> 00:07:14,220 And here it is, 172 00:07:14,220 --> 00:07:17,020 here is our very first webpage 173 00:07:17,020 --> 00:07:20,830 that we just created manually in VS Code. 174 00:07:20,830 --> 00:07:21,900 Great. 175 00:07:21,900 --> 00:07:24,680 And that's really amazing if you ask me, 176 00:07:24,680 --> 00:07:27,460 so congratulations and well done 177 00:07:27,460 --> 00:07:29,853 on your very first web page here. 178 00:07:30,880 --> 00:07:33,440 Let's just push it to the side here 179 00:07:33,440 --> 00:07:37,293 a little bit and then VS Code to the other side. 180 00:07:38,290 --> 00:07:40,077 So from now on, we will always have, 181 00:07:40,077 --> 00:07:42,080 our code here on the left side 182 00:07:42,080 --> 00:07:43,880 and then on the right side the browser 183 00:07:43,880 --> 00:07:46,460 so that we can see our changes. 184 00:07:46,460 --> 00:07:48,620 And to give us a bit more space here, 185 00:07:48,620 --> 00:07:49,820 we can, again, 186 00:07:49,820 --> 00:07:51,870 click on this tab here 187 00:07:51,870 --> 00:07:53,320 and that will then collapse 188 00:07:53,320 --> 00:07:55,670 the sidebar and give us more space 189 00:07:55,670 --> 00:07:56,933 for our actual code. 190 00:07:57,820 --> 00:07:59,720 So you see that here, 191 00:07:59,720 --> 00:08:03,970 we have this hello world in big and bold text. 192 00:08:03,970 --> 00:08:08,380 And so that corresponds here to this H1 element, 193 00:08:08,380 --> 00:08:11,090 and then below that we have this paragraph, 194 00:08:11,090 --> 00:08:13,280 which is translated here 195 00:08:13,280 --> 00:08:15,400 into this visual element. 196 00:08:15,400 --> 00:08:17,670 We also have the actual title 197 00:08:17,670 --> 00:08:21,530 of the page here in the title of this tab. 198 00:08:21,530 --> 00:08:24,830 So "My first webpage" is what we have here, 199 00:08:24,830 --> 00:08:27,480 and that is exactly what we typed here 200 00:08:27,480 --> 00:08:29,640 into the title element. 201 00:08:29,640 --> 00:08:30,690 Right? 202 00:08:30,690 --> 00:08:32,150 And so one more time, 203 00:08:32,150 --> 00:08:33,870 the code that we wrote here 204 00:08:33,870 --> 00:08:35,880 in our HTML document 205 00:08:35,880 --> 00:08:38,380 is now reflected in the real world 206 00:08:38,380 --> 00:08:40,363 in this real web browser. 207 00:08:41,280 --> 00:08:43,720 And speaking of the web browser, 208 00:08:43,720 --> 00:08:45,950 I'm using Google Chrome to test 209 00:08:45,950 --> 00:08:47,920 all the codes that we're gonna write 210 00:08:47,920 --> 00:08:49,590 throughout this course. 211 00:08:49,590 --> 00:08:50,950 And so I really advise you 212 00:08:50,950 --> 00:08:53,060 to also use Google Chrome 213 00:08:53,060 --> 00:08:56,350 to always test the code that you are writing. 214 00:08:56,350 --> 00:08:57,210 So that will, again, 215 00:08:57,210 --> 00:08:59,400 ensure that you have the exact 216 00:08:59,400 --> 00:09:01,350 same results as you are seeing 217 00:09:01,350 --> 00:09:03,213 in the course videos. 218 00:09:03,213 --> 00:09:04,760 Okay. 219 00:09:04,760 --> 00:09:06,840 And this is actually enough 220 00:09:06,840 --> 00:09:09,750 for this very first coding video. 221 00:09:09,750 --> 00:09:11,810 And I hope that you will really get 222 00:09:11,810 --> 00:09:14,150 the ideas that I wanted to show you 223 00:09:14,150 --> 00:09:15,570 in this lecture. 224 00:09:15,570 --> 00:09:18,100 So basically starting from creating 225 00:09:18,100 --> 00:09:19,820 a project folder, 226 00:09:19,820 --> 00:09:23,548 then opening up that project folder in VS Code. 227 00:09:23,548 --> 00:09:27,290 So this folder here to test folder, 228 00:09:27,290 --> 00:09:28,690 then inside of that, 229 00:09:28,690 --> 00:09:31,380 creating an HTML file, 230 00:09:31,380 --> 00:09:34,630 then adding some code to that file 231 00:09:34,630 --> 00:09:36,320 and finally opening up 232 00:09:36,320 --> 00:09:39,440 the HTML document in a real browser, 233 00:09:39,440 --> 00:09:40,960 such as Google Chrome, 234 00:09:40,960 --> 00:09:43,600 where we then see this result. 235 00:09:43,600 --> 00:09:46,470 So basically the translation of our code 236 00:09:46,470 --> 00:09:48,550 to a visual result. 237 00:09:48,550 --> 00:09:51,380 So I hope that you had some fun doing this, 238 00:09:51,380 --> 00:09:53,653 and I see you in the next video. 15538

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