All language subtitles for 012 Text Elements.en_US

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,673 --> 00:00:02,506 In this lecture, 2 00:00:02,506 --> 00:00:06,250 we will continue learning how to markup text. 3 00:00:06,250 --> 00:00:08,630 So we will keep using some headings, 4 00:00:08,630 --> 00:00:10,070 some paragraphs, 5 00:00:10,070 --> 00:00:14,363 and we will also learn how to make text bold and italic. 6 00:00:15,950 --> 00:00:19,010 And let's actually start with headings. 7 00:00:19,010 --> 00:00:21,210 So usually the goal of headings 8 00:00:21,210 --> 00:00:24,087 is to break up big blocks of text 9 00:00:24,087 --> 00:00:26,580 into more logical sections, 10 00:00:26,580 --> 00:00:31,580 and to basically add a title to each of the sections. 11 00:00:31,580 --> 00:00:34,770 Now you already learned about the h1 heading, 12 00:00:34,770 --> 00:00:37,510 but there are actually six different headings. 13 00:00:37,510 --> 00:00:39,950 So there's a hierarchy of headings 14 00:00:39,950 --> 00:00:44,140 so that we can establish a hierarchy in our text. 15 00:00:44,140 --> 00:00:48,720 So we can go all the way from h1 to h6. 16 00:00:48,720 --> 00:00:52,110 So let's grab this text here 17 00:00:52,110 --> 00:00:55,070 and create all of these six different headings, 18 00:00:55,070 --> 00:00:58,270 just so you can see how they look different visually 19 00:00:58,270 --> 00:00:59,283 in the browser. 20 00:01:00,370 --> 00:01:03,830 So the h1 we can call the "Primary heading", 21 00:01:03,830 --> 00:01:06,113 and then the secondary heading is the h2. 22 00:01:07,680 --> 00:01:11,130 And I'm pasting the exact same text here 23 00:01:11,130 --> 00:01:14,203 so we can see the visual difference between them. 24 00:01:15,590 --> 00:01:18,070 So we have h1, h2, 25 00:01:18,070 --> 00:01:22,200 and then for the tertiary heading 26 00:01:22,200 --> 00:01:23,033 we use h3. 27 00:01:24,470 --> 00:01:26,623 Pasting the same text there. 28 00:01:29,280 --> 00:01:31,770 And now we just have to repeat all of this 29 00:01:31,770 --> 00:01:34,133 all the way down to h6. 30 00:01:37,650 --> 00:01:38,510 All right, 31 00:01:38,510 --> 00:01:41,140 and as you're typing this, 32 00:01:41,140 --> 00:01:42,200 these characters, 33 00:01:42,200 --> 00:01:43,580 so this code, 34 00:01:43,580 --> 00:01:46,370 all of this will start getting into your brain 35 00:01:46,370 --> 00:01:49,763 and you will start getting practice writing HTML. 36 00:01:52,600 --> 00:01:54,160 So h6, 37 00:01:54,160 --> 00:01:56,490 and then let's give it a save 38 00:01:57,490 --> 00:01:59,900 and then reloading the browser. 39 00:01:59,900 --> 00:02:02,150 And so you can see very nicely 40 00:02:02,150 --> 00:02:06,710 that this really created a visual hierarchy basically 41 00:02:06,710 --> 00:02:09,010 between these six headings. 42 00:02:09,010 --> 00:02:11,830 So the first one is the biggest one by far, 43 00:02:11,830 --> 00:02:13,230 and then this last one, 44 00:02:13,230 --> 00:02:14,830 which is the h6 45 00:02:14,830 --> 00:02:16,890 is kind of small. 46 00:02:16,890 --> 00:02:20,480 And then in between we have all these different variations. 47 00:02:20,480 --> 00:02:21,530 Now okay. 48 00:02:21,530 --> 00:02:25,010 So now we know how these different headings work, 49 00:02:25,010 --> 00:02:26,733 but now let's take a look 50 00:02:26,733 --> 00:02:28,860 at our demo page actually 51 00:02:28,860 --> 00:02:32,530 just to see which kind of headings we actually need. 52 00:02:32,530 --> 00:02:37,190 So we have basically the name of this block, 53 00:02:37,190 --> 00:02:38,680 so the code magazine, 54 00:02:38,680 --> 00:02:41,130 and this is the biggest heading. 55 00:02:41,130 --> 00:02:45,030 Then below that we have the name of the article, 56 00:02:45,030 --> 00:02:46,570 so of this block post, 57 00:02:46,570 --> 00:02:48,820 and this one is a little bit smaller, 58 00:02:48,820 --> 00:02:51,090 so it's not a primary heading anymore, 59 00:02:51,090 --> 00:02:52,973 but it is a secondary heading. 60 00:02:53,830 --> 00:02:57,430 Then inside of this text here, 61 00:02:57,430 --> 00:03:00,150 and remembered how I said that heading 62 00:03:00,150 --> 00:03:04,950 is basically to break up texts into logical sections, right? 63 00:03:04,950 --> 00:03:06,970 And so here in between this text 64 00:03:06,970 --> 00:03:08,850 we have another section. 65 00:03:08,850 --> 00:03:10,518 line:15% And so here inside this, 66 00:03:10,518 --> 00:03:12,690 line:15% let's say block post, 67 00:03:12,690 --> 00:03:14,740 line:15% and we have another heading. 68 00:03:14,740 --> 00:03:16,963 And so this should probably be an h3. 69 00:03:18,800 --> 00:03:19,633 All right. 70 00:03:19,633 --> 00:03:24,593 And so let's now create a markup for this kind of structure. 71 00:03:25,620 --> 00:03:29,670 So we have all these texts that we need actually here. 72 00:03:29,670 --> 00:03:32,990 So we just need to copy paste this code here, 73 00:03:32,990 --> 00:03:33,963 or this text. 74 00:03:36,220 --> 00:03:37,600 All right. 75 00:03:37,600 --> 00:03:39,950 line:15% So I'm leaving this here for now for reference. 76 00:03:42,591 --> 00:03:43,424 And so, 77 00:03:43,424 --> 00:03:46,200 remember we are going to start with the primary heading. 78 00:03:46,200 --> 00:03:47,740 So I'll just paste this here 79 00:03:47,740 --> 00:03:49,293 and then close the h1. 80 00:03:51,383 --> 00:03:52,570 Now okay. 81 00:03:52,570 --> 00:03:55,816 line:15% Then let's create our secondary heading. 82 00:03:55,816 --> 00:03:58,333 And again I will grab 83 00:03:58,333 --> 00:04:00,513 the texts from here. 84 00:04:01,540 --> 00:04:02,500 And so that's... 85 00:04:03,396 --> 00:04:06,220 Well that's actually the one that we already had before. 86 00:04:06,220 --> 00:04:08,523 line:15% So this one is exactly the same as this one, 87 00:04:09,540 --> 00:04:11,350 but that doesn't really matter. 88 00:04:11,350 --> 00:04:12,183 It's no problem. 89 00:04:13,840 --> 00:04:15,490 And then let's get our h3 90 00:04:15,490 --> 00:04:19,133 which is what is HTML. 91 00:04:20,030 --> 00:04:21,173 Let's just write that. 92 00:04:26,410 --> 00:04:30,820 And then let's check out what this looks like 93 00:04:30,820 --> 00:04:32,223 and here we go. 94 00:04:33,250 --> 00:04:34,083 Nice. 95 00:04:34,083 --> 00:04:35,800 So this is kind of the structure 96 00:04:35,800 --> 00:04:38,280 of our text right now, 97 00:04:38,280 --> 00:04:39,960 and now we just need to fill it up 98 00:04:39,960 --> 00:04:42,920 with the paragraphs in between. 99 00:04:42,920 --> 00:04:47,020 line:15% So basically for each of these paragraphs 100 00:04:47,020 --> 00:04:48,390 line:15% that we have in the text 101 00:04:48,390 --> 00:04:52,210 we can simply create a paragraph and a code. 102 00:04:52,210 --> 00:04:53,120 Right? 103 00:04:53,120 --> 00:04:57,020 And we already used the paragraph element before, 104 00:04:57,020 --> 00:04:59,581 and so that's kind of a generic element 105 00:04:59,581 --> 00:05:03,163 that we use to mark up bigger blocks of text. 106 00:05:05,420 --> 00:05:08,760 line:15% So remember that's the "p" element, 107 00:05:08,760 --> 00:05:11,660 and let me just grab the content here. 108 00:05:11,660 --> 00:05:12,980 So the first one that we have here 109 00:05:12,980 --> 00:05:17,673 is posted by Laura Jones on Monday, June 21st. 110 00:05:19,110 --> 00:05:20,960 Let me copy it. 111 00:05:20,960 --> 00:05:22,260 Oh and do you see that now 112 00:05:23,240 --> 00:05:26,113 this element was again closed automatically. 113 00:05:27,940 --> 00:05:29,423 Let's give it a save here. 114 00:05:30,770 --> 00:05:33,453 And now let's create some additional paragraphs here. 115 00:05:35,520 --> 00:05:36,370 So the p element, 116 00:05:36,370 --> 00:05:39,273 and let me actually close it immediately here, 117 00:05:40,130 --> 00:05:42,343 and then let's grab our text. 118 00:05:43,690 --> 00:05:45,533 So it's this one here. 119 00:05:47,260 --> 00:05:48,890 So copy 120 00:05:48,890 --> 00:05:50,303 line:15% and paste. 121 00:05:52,450 --> 00:05:54,720 line:15% And so by now we are starting 122 00:05:54,720 --> 00:05:58,070 line:15% to build a really our project at the same time 123 00:05:58,070 --> 00:06:00,023 line:15% as learning about these elements. 124 00:06:01,200 --> 00:06:03,500 So this one here as well, 125 00:06:03,500 --> 00:06:05,100 line:15% so I'm copying it again 126 00:06:05,100 --> 00:06:07,963 line:15% and then pasting it inside of the p element. 127 00:06:09,810 --> 00:06:11,540 So let's give it a save 128 00:06:11,540 --> 00:06:14,000 and reload it again 129 00:06:14,000 --> 00:06:17,010 and that's looking nice already. 130 00:06:17,010 --> 00:06:18,120 Great. 131 00:06:18,120 --> 00:06:19,440 Let's take a look, 132 00:06:19,440 --> 00:06:21,990 line:15% and now let's just grab two more, 133 00:06:21,990 --> 00:06:24,480 so these two paragraphs here. 134 00:06:24,480 --> 00:06:27,263 line:15% So after the h3 that we have down here, 135 00:06:28,880 --> 00:06:32,453 so "p" and closing it immediately as well. 136 00:06:35,690 --> 00:06:39,950 So just double clicking to selecting all of it, 137 00:06:39,950 --> 00:06:41,393 line:15% just a nice technique. 138 00:06:42,810 --> 00:06:46,733 line:15% And then let's just add the final one. 139 00:06:54,860 --> 00:06:56,260 line:15% And you'll see that in the meantime 140 00:06:56,260 --> 00:06:57,950 line:15% it formatted to code here 141 00:06:57,950 --> 00:07:00,170 line:15% and that's because of the auto save 142 00:07:00,170 --> 00:07:01,493 line:15% and the auto format. 143 00:07:02,690 --> 00:07:03,523 line:15% Okay, 144 00:07:03,523 --> 00:07:05,910 line:15% now I saved it manually actually. 145 00:07:05,910 --> 00:07:07,510 line:15% Let's go here 146 00:07:07,510 --> 00:07:10,430 line:15% and there is our content again. 147 00:07:10,430 --> 00:07:12,370 Now to clean this up a little bit 148 00:07:12,370 --> 00:07:13,940 let's now actually get rid 149 00:07:13,940 --> 00:07:16,650 of all of these six headings here. 150 00:07:16,650 --> 00:07:19,550 So now you already know how they work 151 00:07:19,550 --> 00:07:20,693 and that they exist. 152 00:07:21,600 --> 00:07:24,030 And actually instead of getting rid of them, 153 00:07:24,030 --> 00:07:27,890 we can use something called "Comments" in HTML. 154 00:07:27,890 --> 00:07:30,080 So a comment in HTML 155 00:07:30,080 --> 00:07:32,350 is a way of writing some code 156 00:07:32,350 --> 00:07:35,130 that will not be visible in the browser. 157 00:07:35,130 --> 00:07:36,550 And this is very useful 158 00:07:36,550 --> 00:07:40,330 because it allows us to write comments about our code, 159 00:07:40,330 --> 00:07:42,950 or also to simply hide some code 160 00:07:42,950 --> 00:07:46,233 that we do not want to be rendered on the browser. 161 00:07:47,380 --> 00:07:48,890 Now to write a comment 162 00:07:48,890 --> 00:07:51,410 it's a little bit of a weird syntax. 163 00:07:51,410 --> 00:07:54,860 So again we write the less than symbol, 164 00:07:54,860 --> 00:07:57,350 then an exclamation mark, 165 00:07:57,350 --> 00:07:59,490 then dash dash, 166 00:07:59,490 --> 00:08:02,240 and then to close the comment VS code 167 00:08:02,240 --> 00:08:05,040 already automatically created, 168 00:08:05,040 --> 00:08:07,920 this dash dash closing part. 169 00:08:07,920 --> 00:08:09,970 So this opens a new comment 170 00:08:09,970 --> 00:08:13,600 and this closes that same comment. 171 00:08:13,600 --> 00:08:16,344 Now let's remove this part here 172 00:08:16,344 --> 00:08:19,430 and now you'll see that everything turned gray. 173 00:08:19,430 --> 00:08:21,810 So all of this is a comment now, 174 00:08:21,810 --> 00:08:23,410 but we actually want the comment 175 00:08:23,410 --> 00:08:25,213 to end right here. 176 00:08:26,800 --> 00:08:29,700 So "dash dash" and close, 177 00:08:29,700 --> 00:08:32,200 and now only this part here is gray, 178 00:08:32,200 --> 00:08:34,360 which means that this is now the comment 179 00:08:34,360 --> 00:08:36,203 and it will now not be rendered. 180 00:08:37,190 --> 00:08:39,090 So let's check that out. 181 00:08:39,090 --> 00:08:40,850 And if I reload, 182 00:08:40,850 --> 00:08:43,620 now it is gone from the page. 183 00:08:43,620 --> 00:08:44,500 Nice. 184 00:08:44,500 --> 00:08:46,990 But we can still keep it here in the code 185 00:08:46,990 --> 00:08:51,990 just so you know that h1, 2, 3, 4, 5, and six also exist. 186 00:08:52,180 --> 00:08:54,680 Now just one thing that I didn't mention earlier 187 00:08:54,680 --> 00:08:56,680 about the headings 188 00:08:56,680 --> 00:08:58,460 is that each and every page 189 00:08:58,460 --> 00:09:01,730 should only have one h1 one heading. 190 00:09:01,730 --> 00:09:03,780 So only one primary heading. 191 00:09:03,780 --> 00:09:06,090 That it's very important to keep in mind. 192 00:09:06,090 --> 00:09:08,380 This is not really mandatory 193 00:09:08,380 --> 00:09:11,230 so it doesn't violate any HTML rules 194 00:09:11,230 --> 00:09:13,330 if we have multiple h1's, 195 00:09:13,330 --> 00:09:15,160 but it is a very good practice 196 00:09:15,160 --> 00:09:17,730 to always just have one of them. 197 00:09:17,730 --> 00:09:19,580 Now about all the other ones, 198 00:09:19,580 --> 00:09:22,270 we can have of course multiple of them. 199 00:09:22,270 --> 00:09:23,931 So for example, 200 00:09:23,931 --> 00:09:25,940 line:15% I think on our page we actually have 201 00:09:25,940 --> 00:09:28,300 another of these headings here 202 00:09:28,300 --> 00:09:30,310 in the middle of our text. 203 00:09:30,310 --> 00:09:31,650 And so in our case, 204 00:09:31,650 --> 00:09:33,463 these are h3 headings. 205 00:09:34,640 --> 00:09:36,240 So you see, 206 00:09:36,240 --> 00:09:37,073 here is another one. 207 00:09:37,073 --> 00:09:39,160 line:15% So of course we can also add that here 208 00:09:40,070 --> 00:09:41,050 line:15% right away, 209 00:09:41,050 --> 00:09:42,540 line:15% why not? 210 00:09:42,540 --> 00:09:43,856 line:15% So h3, 211 00:09:43,856 --> 00:09:47,660 line:15% "Why should you learn HTML?", 212 00:09:50,230 --> 00:09:53,820 line:15% and then of course closing it. 213 00:09:53,820 --> 00:09:54,653 Okay. 214 00:09:55,530 --> 00:09:57,617 Now just to finish, 215 00:09:57,617 --> 00:09:58,500 let me also quickly show you 216 00:09:58,500 --> 00:10:00,230 how we can create bold 217 00:10:00,230 --> 00:10:02,640 and a italic text. 218 00:10:02,640 --> 00:10:04,790 So here in our demo site 219 00:10:04,790 --> 00:10:07,210 we have this name of the author, 220 00:10:07,210 --> 00:10:10,070 which is "Laura Jones" in bold. 221 00:10:10,070 --> 00:10:13,440 So how can we do that in HTML? 222 00:10:13,440 --> 00:10:15,950 Well there is a special element for that, 223 00:10:15,950 --> 00:10:18,650 or actually two elements. 224 00:10:18,650 --> 00:10:20,420 And let me start with a simpler one, 225 00:10:20,420 --> 00:10:22,810 which is simply called "b". 226 00:10:22,810 --> 00:10:24,800 So B stands for "Bold". 227 00:10:24,800 --> 00:10:27,780 And so the part that we want to be bold, 228 00:10:27,780 --> 00:10:29,970 so "Laura Jones" in this case, 229 00:10:29,970 --> 00:10:30,940 all they have to do 230 00:10:31,913 --> 00:10:34,600 is to put it inside of a b element. 231 00:10:34,600 --> 00:10:36,580 So we can just write 232 00:10:37,620 --> 00:10:38,910 b like this 233 00:10:40,020 --> 00:10:40,890 in the beginning 234 00:10:41,817 --> 00:10:43,160 and then at the end of the content 235 00:10:43,160 --> 00:10:44,973 we simply add our closing tag. 236 00:10:45,980 --> 00:10:46,813 So that's "/b", 237 00:10:47,880 --> 00:10:49,430 close it, 238 00:10:49,430 --> 00:10:52,733 and now once we reload or own page. 239 00:10:53,860 --> 00:10:56,920 So take a look here at "Laura Jones", 240 00:10:56,920 --> 00:10:58,630 if we reload that 241 00:10:58,630 --> 00:11:01,107 then you see that it turned bold, 242 00:11:01,107 --> 00:11:02,890 and great. 243 00:11:02,890 --> 00:11:04,490 Now however, 244 00:11:04,490 --> 00:11:08,440 the use of b is actually not a good practice. 245 00:11:08,440 --> 00:11:11,730 So b is actually an older HTML element 246 00:11:11,730 --> 00:11:14,070 and starting in HTML five, 247 00:11:14,070 --> 00:11:18,160 we should always use the strong element instead of "b". 248 00:11:18,160 --> 00:11:19,180 The reason for that 249 00:11:19,180 --> 00:11:23,730 is that b doesn't have any so-called semantic meaning, 250 00:11:23,730 --> 00:11:27,250 and more about that a little bit later in this section. 251 00:11:27,250 --> 00:11:29,250 But essentially what this means 252 00:11:29,250 --> 00:11:32,010 is that b is simply an element, 253 00:11:32,010 --> 00:11:34,560 but without a specific meaning, 254 00:11:34,560 --> 00:11:38,560 while on the other hand the strong element means that 255 00:11:38,560 --> 00:11:40,610 this is really an important element 256 00:11:40,610 --> 00:11:43,053 that we want to stand out from the page. 257 00:11:43,960 --> 00:11:48,530 So if we say "Strong" on the opening tag, 258 00:11:48,530 --> 00:11:51,780 and then of course also in the closing tag, 259 00:11:51,780 --> 00:11:55,120 then it will look exactly the same in the browser. 260 00:11:55,120 --> 00:11:56,283 So let's confirm. 261 00:11:57,140 --> 00:11:58,750 Yeah it's still bold, 262 00:11:58,750 --> 00:12:00,350 but now it has a meaning 263 00:12:00,350 --> 00:12:02,880 that it is a more important text. 264 00:12:02,880 --> 00:12:06,980 And that is essentially the idea of semantic HTML. 265 00:12:06,980 --> 00:12:07,813 And again, 266 00:12:07,813 --> 00:12:10,550 we will talk more about semantic HTML 267 00:12:10,550 --> 00:12:11,923 by the end of this section. 268 00:12:13,090 --> 00:12:16,470 So for now just know that don't use "b", 269 00:12:16,470 --> 00:12:19,313 but use "Strong" to make text bold. 270 00:12:20,600 --> 00:12:23,860 Now let's also make some text italic here, 271 00:12:23,860 --> 00:12:27,300 and let's choose this word here. 272 00:12:27,300 --> 00:12:29,480 So just fundamental. 273 00:12:29,480 --> 00:12:30,930 And just like with "b", 274 00:12:30,930 --> 00:12:33,320 there are actually two ways of doing it. 275 00:12:33,320 --> 00:12:34,240 The older one 276 00:12:34,240 --> 00:12:35,873 is the "i" element. 277 00:12:36,880 --> 00:12:40,170 So wrapping whatever part of the text we want 278 00:12:40,170 --> 00:12:43,433 to be italic inside of the i element. 279 00:12:44,957 --> 00:12:47,163 "i" just stands for italic, 280 00:12:48,050 --> 00:12:49,680 and indeed, 281 00:12:49,680 --> 00:12:51,810 you see that now it changed, 282 00:12:51,810 --> 00:12:56,430 but one more time in order to make this a semantic HTML, 283 00:12:56,430 --> 00:12:58,760 we should no longer use the "i" element, 284 00:12:58,760 --> 00:13:01,180 but the "em" element, 285 00:13:01,180 --> 00:13:03,960 which stands for "Emphasize". 286 00:13:03,960 --> 00:13:06,890 So we want to emphasize this text here 287 00:13:06,890 --> 00:13:09,560 and that is the reason why we make it italic. 288 00:13:09,560 --> 00:13:12,460 So that's also the reason why the browser 289 00:13:12,460 --> 00:13:14,683 then shows it as italic, 290 00:13:16,060 --> 00:13:16,893 right? 291 00:13:16,893 --> 00:13:19,810 So if we reload it is still italic, 292 00:13:19,810 --> 00:13:22,560 but now we basically gave it the meaning 293 00:13:22,560 --> 00:13:25,320 of an emphasized text. 294 00:13:25,320 --> 00:13:26,641 Now okay, great. 295 00:13:26,641 --> 00:13:28,690 This is great progress. 296 00:13:28,690 --> 00:13:31,890 You're doing really well up until this point. 297 00:13:31,890 --> 00:13:34,020 Now just to finish this lecture, 298 00:13:34,020 --> 00:13:35,960 I actually already want to give you 299 00:13:35,960 --> 00:13:39,060 your very first small coding challenge. 300 00:13:39,060 --> 00:13:41,140 So what I want you to do 301 00:13:41,140 --> 00:13:43,810 is basically this. 302 00:13:43,810 --> 00:13:46,020 Let me show it to you here. 303 00:13:46,020 --> 00:13:51,020 So I want you to make the first letter of these words, 304 00:13:51,400 --> 00:13:54,720 so "Hyper Text Markup Language", 305 00:13:54,720 --> 00:13:59,123 I want you to make the H, T, M, and L bold. 306 00:14:00,280 --> 00:14:01,230 All right. 307 00:14:01,230 --> 00:14:04,803 So basically that is this text right here. 308 00:14:06,080 --> 00:14:07,710 So this H, 309 00:14:07,710 --> 00:14:09,000 this T, 310 00:14:09,000 --> 00:14:10,040 this M, 311 00:14:10,040 --> 00:14:11,160 and this L, 312 00:14:11,160 --> 00:14:12,780 they should all be bold. 313 00:14:12,780 --> 00:14:16,060 So they should be displayed here in bold 314 00:14:16,060 --> 00:14:19,060 just like I have it in the demo page. 315 00:14:19,060 --> 00:14:21,880 So do you think that you can do that 316 00:14:21,880 --> 00:14:24,830 and write some HTML code on your own 317 00:14:24,830 --> 00:14:27,080 for the very first time? 318 00:14:27,080 --> 00:14:29,530 Well I really hope that you try it 319 00:14:29,530 --> 00:14:31,800 because as I said before, 320 00:14:31,800 --> 00:14:32,940 these coding challenges 321 00:14:32,940 --> 00:14:35,000 are really really important for you 322 00:14:35,000 --> 00:14:37,510 to start practicing your skills, 323 00:14:37,510 --> 00:14:41,310 even if it's just something really simple like this. 324 00:14:41,310 --> 00:14:42,450 So please go ahead 325 00:14:42,450 --> 00:14:44,330 line:15% and pause the video right now 326 00:14:44,330 --> 00:14:47,150 line:15% and make each of these four letters bold, 327 00:14:47,150 --> 00:14:49,669 line:15% and I will be back here in a second with you 328 00:14:49,669 --> 00:14:51,653 line:15% to show you how it's done. 329 00:14:54,170 --> 00:14:56,893 line:15% So did you manage to do this? 330 00:14:57,730 --> 00:15:00,556 Well this is how it works. 331 00:15:00,556 --> 00:15:02,010 So once again, 332 00:15:02,010 --> 00:15:04,940 we just need to wrap the parts 333 00:15:04,940 --> 00:15:08,300 that we want to be marked as bold, 334 00:15:08,300 --> 00:15:10,830 into a strong element. 335 00:15:10,830 --> 00:15:11,870 And in this case, 336 00:15:11,870 --> 00:15:13,483 that is just the "h" 337 00:15:14,460 --> 00:15:15,910 and so that's why we're closing 338 00:15:15,910 --> 00:15:17,930 this strong element right here 339 00:15:17,930 --> 00:15:19,863 in the middle of the word. 340 00:15:21,020 --> 00:15:24,123 line:15% Then here we want the "T" and so again, 341 00:15:25,440 --> 00:15:26,430 line:15% we write... 342 00:15:30,600 --> 00:15:31,630 And so again, 343 00:15:31,630 --> 00:15:34,360 a strong element here. 344 00:15:34,360 --> 00:15:35,803 line:15% So the opening tag, 345 00:15:36,690 --> 00:15:38,663 and then the other one right here. 346 00:15:43,610 --> 00:15:46,703 line:15% And of course then the same for the other two letters. 347 00:15:58,120 --> 00:15:59,640 Now okay. 348 00:15:59,640 --> 00:16:02,375 So hopefully I didn't do any mistake there. 349 00:16:02,375 --> 00:16:04,310 Let's reload 350 00:16:04,310 --> 00:16:06,260 and there you go. 351 00:16:06,260 --> 00:16:08,763 HTML is now marked in bold. 352 00:16:09,750 --> 00:16:10,720 Great. 353 00:16:10,720 --> 00:16:11,553 So again, 354 00:16:11,553 --> 00:16:14,360 I hope that you manage to do this on your own 355 00:16:14,360 --> 00:16:17,673 as this is really important for your learning process. 23784

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