All language subtitles for 03 - The syntax of HTML elements.en

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
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
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:00,006 --> 00:00:01,008 - Let's jump right in. 2 00:00:01,008 --> 00:00:04,003 HTML looks like this. 3 00:00:04,003 --> 00:00:07,009 In this case, p stands for paragraph. 4 00:00:07,009 --> 00:00:11,006 We make this HTML by starting out with a less-than symbol, 5 00:00:11,006 --> 00:00:13,009 followed by the correct letter, or word, 6 00:00:13,009 --> 00:00:16,001 or abbreviated word, and finishing 7 00:00:16,001 --> 00:00:18,001 with a greater-than symbol. 8 00:00:18,001 --> 00:00:22,002 That makes what's called a tag, an HTML tag. 9 00:00:22,002 --> 00:00:25,007 Basically, all HTML markup looks like this. 10 00:00:25,007 --> 00:00:28,009 The syntax itself is fairly simple. 11 00:00:28,009 --> 00:00:33,003 The trickier part is knowing which tags to use when. 12 00:00:33,003 --> 00:00:36,005 There are actually two kinds of tags, two flavors, 13 00:00:36,005 --> 00:00:39,009 opening tags and closing tags. 14 00:00:39,009 --> 00:00:42,003 This p is an opening tag. 15 00:00:42,003 --> 00:00:44,009 The closing tag is very similar, 16 00:00:44,009 --> 00:00:46,008 but it has a slash in it. 17 00:00:46,008 --> 00:00:49,004 Less-than symbol, a forward slash, 18 00:00:49,004 --> 00:00:51,005 the letter or word that matches the tag 19 00:00:51,005 --> 00:00:54,003 that we're closing, and a greater-than symbol. 20 00:00:54,003 --> 00:00:56,002 To markup a paragraph properly, 21 00:00:56,002 --> 00:00:58,008 we use an opening tag at the beginning of the paragraph, 22 00:00:58,008 --> 00:01:02,007 and then a closing tag at the end, like this. 23 00:01:02,007 --> 00:01:04,006 The opening tag marks the beginning, 24 00:01:04,006 --> 00:01:06,002 the content goes in the middle, 25 00:01:06,002 --> 00:01:08,008 and the closing tag marks the end. 26 00:01:08,008 --> 00:01:11,000 These opening and closing tags travel the world 27 00:01:11,000 --> 00:01:13,006 together, in pairs. 28 00:01:13,006 --> 00:01:17,004 The whole thing is called an element. 29 00:01:17,004 --> 00:01:20,005 Now, not every element has a closing tag. 30 00:01:20,005 --> 00:01:22,002 We'll be looking at some of those later. 31 00:01:22,002 --> 00:01:25,000 But a lot of the HTML elements do have 32 00:01:25,000 --> 00:01:27,003 both an opening and a closing tag. 33 00:01:27,003 --> 00:01:29,004 Here are some other examples. 34 00:01:29,004 --> 00:01:32,000 There's a paragraph wrapped in p tags. 35 00:01:32,000 --> 00:01:34,008 We wrap a headline in h1 tags. 36 00:01:34,008 --> 00:01:37,007 An article is wrapped in an article tag. 37 00:01:37,007 --> 00:01:40,003 We'll be going through dozens of HTML elements 38 00:01:40,003 --> 00:01:43,002 in this course, learning when to use each one, 39 00:01:43,002 --> 00:01:44,009 so don't worry about that yet. 40 00:01:44,009 --> 00:01:48,002 Just understand the basic mechanics for now. 41 00:01:48,002 --> 00:01:52,005 The markup conveys purpose and meaning. 42 00:01:52,005 --> 00:01:55,005 It provides computers a way to understand more 43 00:01:55,005 --> 00:01:58,001 about what the content, or the interface, 44 00:01:58,001 --> 00:01:59,008 means to humans. 45 00:01:59,008 --> 00:02:03,001 HTML provides a connection of meaning 46 00:02:03,001 --> 00:02:06,006 between the human world and the computer world. 47 00:02:06,006 --> 00:02:08,006 Let's take a look at another example. 48 00:02:08,006 --> 00:02:11,008 Here, we have a very short paragraph. 49 00:02:11,008 --> 00:02:15,004 This paragraph has text that's emphasized for effect. 50 00:02:15,004 --> 00:02:17,003 The whole paragraph is wrapped 51 00:02:17,003 --> 00:02:19,004 in opening and closing p tags, 52 00:02:19,004 --> 00:02:21,004 and then, inside the paragraph, 53 00:02:21,004 --> 00:02:25,003 we have another phrase, text that's emphasized. 54 00:02:25,003 --> 00:02:27,008 And we made that into another element 55 00:02:27,008 --> 00:02:31,004 by wrapping it in opening and closing em tags. 56 00:02:31,004 --> 00:02:34,001 I'll explain the em element later, 57 00:02:34,001 --> 00:02:37,000 just notice how one HTML element can be nested 58 00:02:37,000 --> 00:02:38,007 inside of another. 59 00:02:38,007 --> 00:02:42,000 In fact, and entire HTML document is a whole bunch 60 00:02:42,000 --> 00:02:47,002 of HTML elements all nested inside of each other. 61 00:02:47,002 --> 00:02:49,002 If you've studied computer science, 62 00:02:49,002 --> 00:02:51,006 you may recognize that nesting elements 63 00:02:51,006 --> 00:02:54,008 like this will create a tree, a document tree. 64 00:02:54,008 --> 00:02:56,009 Or if you aren't a comp-sci geek, 65 00:02:56,009 --> 00:02:59,003 then maybe imagine a family tree 66 00:02:59,003 --> 00:03:02,008 with parents, and children, and siblings. 67 00:03:02,008 --> 00:03:05,000 The browser pays attention to the structure 68 00:03:05,000 --> 00:03:07,006 of how HTML elements are nested, 69 00:03:07,006 --> 00:03:08,005 and it creates a big family tree 70 00:03:08,005 --> 00:03:13,006 out of who's related to who, and how. 71 00:03:13,006 --> 00:03:15,009 Or, said in the correct technical terminology, 72 00:03:15,009 --> 00:03:19,007 it builds a DOM tree from the data structure. 73 00:03:19,007 --> 00:03:21,000 The DOM tree comes into play 74 00:03:21,000 --> 00:03:23,004 if you write CSS or JavaScript, 75 00:03:23,004 --> 00:03:25,008 or when your developers do. 76 00:03:25,008 --> 00:03:27,006 The browser then uses the DOM tree 77 00:03:27,006 --> 00:03:29,004 to create an accessibility tree. 78 00:03:29,004 --> 00:03:31,009 We'll talk about accessibility, too. 79 00:03:31,009 --> 00:03:35,009 Your choice of HTML elements affects the experience 80 00:03:35,009 --> 00:03:39,000 of users on your website, including people 81 00:03:39,000 --> 00:03:42,001 with a wide range of different disabilities. 82 00:03:42,001 --> 00:03:45,001 It all starts with nesting HTML elements. 83 00:03:45,001 --> 00:03:48,000 Here is a slightly more practical example 84 00:03:48,000 --> 00:03:50,002 of how HTML is nested. 85 00:03:50,002 --> 00:03:51,004 We've got an article. 86 00:03:51,004 --> 00:03:54,004 We can see the opening tag for the article at the beginning, 87 00:03:54,004 --> 00:03:56,002 then inside is a headline, 88 00:03:56,002 --> 00:03:58,004 followed by three paragraphs. 89 00:03:58,004 --> 00:04:02,008 That last paragraph has a phrase of emphasized text inside. 90 00:04:02,008 --> 00:04:04,008 And the whole thing is closed at the end 91 00:04:04,008 --> 00:04:07,001 with a closing article tag. 92 00:04:07,001 --> 00:04:10,001 See how this structure tells the browser 93 00:04:10,001 --> 00:04:13,003 that this article is made up of one headline 94 00:04:13,003 --> 00:04:15,001 and three paragraphs? 95 00:04:15,001 --> 00:04:18,003 Anything that comes after the closing article tag 96 00:04:18,003 --> 00:04:21,000 will be displayed on the same HTML page, 97 00:04:21,000 --> 00:04:23,007 but it will be understood by the browser 98 00:04:23,007 --> 00:04:26,000 to be outside of this article. 99 00:04:26,000 --> 00:04:28,000 It's after the article. 100 00:04:28,000 --> 00:04:32,004 It matters where we open and close our HTML tags, 101 00:04:32,004 --> 00:04:35,003 and how we nest elements inside of each other. 102 00:04:35,003 --> 00:04:39,004 We use this to convey meaning about content and interfaces. 103 00:04:39,004 --> 00:04:41,004 Where does that paragraph start? 104 00:04:41,004 --> 00:04:42,009 Where does it end? 105 00:04:42,009 --> 00:04:46,005 One of the easiest mistakes to make in HTML 106 00:04:46,005 --> 00:04:48,007 is to forget to put the closing tag 107 00:04:48,007 --> 00:04:51,007 at the end of an element. 108 00:04:51,007 --> 00:04:56,000 So don't forget, include the closing tag. 7824

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