All language subtitles for 07 - Lists.en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
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
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:00,005 --> 00:00:02,001 - Let's talk about lists. 2 00:00:02,001 --> 00:00:04,005 We use lists in our life. 3 00:00:04,005 --> 00:00:08,009 To-do lists, lists in recipes, wish lists, bucket lists. 4 00:00:08,009 --> 00:00:11,009 But we use lists on the web even more, 5 00:00:11,009 --> 00:00:15,005 including for things that don't really look like a list. 6 00:00:15,005 --> 00:00:17,009 Most of the time when you see a navigation bar, 7 00:00:17,009 --> 00:00:19,007 that's a list of links. 8 00:00:19,007 --> 00:00:22,004 Or when you go to landing pages with lots of teasers 9 00:00:22,004 --> 00:00:24,008 offering photos and headlines to click on 10 00:00:24,008 --> 00:00:27,004 to get to more content. 11 00:00:27,004 --> 00:00:28,003 Lists. 12 00:00:28,003 --> 00:00:32,000 In html, there are three kinds of lists. 13 00:00:32,000 --> 00:00:37,001 Unordered lists, ordered lists, and definition lists. 14 00:00:37,001 --> 00:00:40,005 Unordered lists are used the most often. 15 00:00:40,005 --> 00:00:42,004 Let's make a simple example. 16 00:00:42,004 --> 00:00:44,009 Here we've got a list of food, say, 17 00:00:44,009 --> 00:00:46,008 ingredients for a recipe. 18 00:00:46,008 --> 00:00:52,004 We'll wrap each item in this list in an
  • element. 19 00:00:52,004 --> 00:00:55,008 Li stands for list item. 20 00:00:55,008 --> 00:00:58,005 You can see the results happening on the right. 21 00:00:58,005 --> 00:01:02,002 The browser puts a dot, a marker, right before each item. 22 00:01:02,002 --> 00:01:05,001 Next, we need to wrap the entire group of items 23 00:01:05,001 --> 00:01:08,000 in an element that will mark the beginning and end 24 00:01:08,000 --> 00:01:10,004 of the whole list, and to tell the browser 25 00:01:10,004 --> 00:01:13,003 which kind of list this is. 26 00:01:13,003 --> 00:01:15,008 To make an unordered list, we use 27 00:01:15,008 --> 00:01:20,002 a
      element, unordered list. 28 00:01:20,002 --> 00:01:23,003 Now to see what's going on in our code more easily, 29 00:01:23,003 --> 00:01:26,001 we can indent the list items. 30 00:01:26,001 --> 00:01:31,000 If we put a few spaces or tabs, spaces or tabs, 31 00:01:31,000 --> 00:01:35,004 it does not matter, put some kind of space 32 00:01:35,004 --> 00:01:38,002 before each one of these list items, 33 00:01:38,002 --> 00:01:41,000 we can better see that the opening
        34 00:01:41,000 --> 00:01:43,004 and the closing
          go together. 35 00:01:43,004 --> 00:01:45,008 This indenting does not have any effect 36 00:01:45,008 --> 00:01:47,008 on what shows up on the web page. 37 00:01:47,008 --> 00:01:49,009 And this indentation is not required, 38 00:01:49,009 --> 00:01:52,002 html doesn't care, the browser doesn't care, 39 00:01:52,002 --> 00:01:54,004 this is just to help humans. 40 00:01:54,004 --> 00:01:56,008 Now these list markers, by default, 41 00:01:56,008 --> 00:01:58,002 the browser's going to show them. 42 00:01:58,002 --> 00:02:00,007 But we don't make an unordered list here 43 00:02:00,007 --> 00:02:03,002 only if we want it to look like this. 44 00:02:03,002 --> 00:02:05,009 We pick
            because it's the right choice 45 00:02:05,009 --> 00:02:09,003 to convey meaning, and then we use CSS 46 00:02:09,003 --> 00:02:12,000 to totally alter how it looks. 47 00:02:12,000 --> 00:02:14,001 But let's not worry about that yet, 48 00:02:14,001 --> 00:02:18,007 let's look at the next kind of list, the ordered list. 49 00:02:18,007 --> 00:02:20,007 Ordered lists are very similar, 50 00:02:20,007 --> 00:02:22,008 only instead of wrapping list items 51 00:02:22,008 --> 00:02:25,005 with a
              , we use
                . 52 00:02:25,005 --> 00:02:29,000 Ol stands for ordered list, which means 53 00:02:29,000 --> 00:02:33,002 there's an order to the items on the list. 54 00:02:33,002 --> 00:02:35,003 Let's say we're marking up a recipe. 55 00:02:35,003 --> 00:02:37,002 These are the steps in the directions, 56 00:02:37,002 --> 00:02:40,001 each marked up as a
              1. element. 57 00:02:40,001 --> 00:02:43,007 Now, we'll wrap this list in a
                  element. 58 00:02:43,007 --> 00:02:45,006 You can see that the list is displayed 59 00:02:45,006 --> 00:02:50,002 with numbered steps conveying the order. 60 00:02:50,002 --> 00:02:53,006 Unordered and ordered lists are very similar. 61 00:02:53,006 --> 00:02:56,005 They just have a different wrapping element. 62 00:02:56,005 --> 00:02:58,009 Now like I said, CSS can be used 63 00:02:58,009 --> 00:03:01,005 to restyle lists to look very different 64 00:03:01,005 --> 00:03:04,000 from this default styling. 65 00:03:04,000 --> 00:03:06,008 Here's another demo to show just a few 66 00:03:06,008 --> 00:03:09,006 of the many possibilities. 67 00:03:09,006 --> 00:03:13,006 These first six examples are all unordered lists. 68 00:03:13,006 --> 00:03:17,000 We can change the list markers or we can remove them. 69 00:03:17,000 --> 00:03:21,000 We can leave the content in a list shaped layout, 70 00:03:21,000 --> 00:03:23,008 or we can lay it out however we want. 71 00:03:23,008 --> 00:03:26,005 These next three examples are all ordered lists 72 00:03:26,005 --> 00:03:28,005 where I'm changing the numbering. 73 00:03:28,005 --> 00:03:31,003 There are many options for how counting can work 74 00:03:31,003 --> 00:03:32,008 in an ordered list. 75 00:03:32,008 --> 00:03:37,002 In this last example, this is an incredibly common use 76 00:03:37,002 --> 00:03:39,003 of the unordered list, to mark up 77 00:03:39,003 --> 00:03:42,003 a set of teasers for articles or other lists 78 00:03:42,003 --> 00:03:44,005 of short form content. 79 00:03:44,005 --> 00:03:47,006 Take a look at this mark up to see more of the details 80 00:03:47,006 --> 00:03:51,000 of what's going on in the html. 81 00:03:51,000 --> 00:03:53,004 There's one more kind of list in html, 82 00:03:53,004 --> 00:03:56,009 the definition list, or the description list. 83 00:03:56,009 --> 00:03:59,008 With unordered lists and ordered lists, 84 00:03:59,008 --> 00:04:03,001 you have list items, item, item, item, 85 00:04:03,001 --> 00:04:06,000 each wrapped in an
                1. element. 86 00:04:06,000 --> 00:04:08,000 But what if we want to make a list that is like 87 00:04:08,000 --> 00:04:12,004 what in computer science is called a key value pair? 88 00:04:12,004 --> 00:04:14,005 What if we want to have an item 89 00:04:14,005 --> 00:04:18,004 and then have something to explain or define that item? 90 00:04:18,004 --> 00:04:22,003 Here, we've got a term and the description of that term. 91 00:04:22,003 --> 00:04:27,001 The term or key or main bit is wrapped in a
                  92 00:04:27,001 --> 00:04:29,004 for definition term. 93 00:04:29,004 --> 00:04:32,006 The description or value, or definition 94 00:04:32,006 --> 00:04:36,009 is wrapped in a
                  for definition description. 95 00:04:36,009 --> 00:04:43,001 And then you can have more than one
                  for each
                  . 96 00:04:43,001 --> 00:04:48,007 The whole thing is wrapped in a
                  for definition list. 97 00:04:48,007 --> 00:04:51,005 You'll notice that the
                  s and the
                  s 98 00:04:51,005 --> 00:04:53,006 are simply setting there next to each other, 99 00:04:53,006 --> 00:04:56,008 there's no wrapper around the sets. 100 00:04:56,008 --> 00:04:59,007 It's just how a definition list works. 101 00:04:59,007 --> 00:05:01,009 So there you have it. 102 00:05:01,009 --> 00:05:06,000 Three kinds of lists in html. 7523
  • Can't find what you're looking for?
    Get subtitles in any language from opensubtitles.com, and translate them here.