Return to Video

HTML Lists (Video Version)

  • 0:01 - 0:03
    You know what I love? Lists.
  • 0:03 - 0:05
    Have you ever made a
    to-do or shopping list?
  • 0:05 - 0:07
    Have you ever read a
    list on a webpage like,
  • 0:07 - 0:10
    "Top 10 Most Ridiculous Dog Faces"?
  • 0:10 - 0:14
    I bet you have, because
    the world is full of lists.
  • 0:14 - 0:16
    HTML gives us a few tags to make lists,
  • 0:16 - 0:19
    and we're going to practice them by making
  • 0:19 - 0:24
    a list of reasons why
    rabbits make great pets.
  • 0:25 - 0:27
    Now, to begin a bulleted list,
  • 0:27 - 0:30
    we must start with the < ul > tag.
  • 0:31 - 0:32
    What does < ul > stand for?
  • 0:32 - 0:36
    Well I bet you can guess what
    the "l" stands for, list.
  • 0:36 - 0:40
    The "u", is a little trickier,
    it stands for unordered,
  • 0:40 - 0:43
    and it means that the browser
    won't number the list items.
  • 0:43 - 0:45
    It will just add little bullets.
  • 0:45 - 0:48
    To see what I mean let's
    add the first item,
  • 0:48 - 0:50
    "They're Furry".
  • 0:50 - 0:52
    See the little circle on the side?
  • 0:52 - 0:53
    That's a bullet.
  • 0:53 - 0:56
    Now what do you suppose < li > stands for?
  • 0:56 - 1:00
    The "l" is list, and the
    "i" is item, list item.
  • 1:00 - 1:02
    Every time we want to add a new item,
  • 1:02 - 1:06
    we need to add a new <
    li > under the < ul > .
  • 1:06 - 1:08
    Every < ul > should have at
    least one < li > under it,
  • 1:08 - 1:12
    because a list with no
    items is pretty boring.
  • 1:12 - 1:14
    Okay, let's add some more so,
  • 1:14 - 1:17
    "Great listeners" and,
  • 1:17 - 1:22
    "Eat all your leftover carrots"
  • 1:22 - 1:25
    Okay this should be a
    pretty convincing list.
  • 1:25 - 1:28
    I don't know who wouldn't want
    a rabbit after reading this.
  • 1:28 - 1:30
    Now, I didn't number this list
  • 1:30 - 1:32
    because I don't think that one reason
  • 1:32 - 1:34
    is more important than the other,
  • 1:34 - 1:37
    but there are a lot of times
    when we do want numbered lists.
  • 1:37 - 1:38
    Like, if we wanted to make a
  • 1:38 - 1:43
    "Top three most famous rabbits" list.
  • 1:45 - 1:47
    So, to start our numbered list,
  • 1:47 - 1:51
    we're going to use an <
    ol > instead of a < ul > .
  • 1:51 - 1:55
    Have you figured out
    what < ol > stands for?
  • 1:55 - 1:56
    Here's a hint, just chop the first
  • 1:56 - 1:59
    two letters off of what < ul > stood for.
  • 1:59 - 2:03
    That's right, it stands
    for "ordered list".
  • 2:03 - 2:05
    And it tells a browser to automatically
  • 2:05 - 2:07
    number each new item.
  • 2:07 - 2:10
    We still use < li > for adding new items
  • 2:10 - 2:12
    inside of the list however.
  • 2:12 - 2:13
    So we'll put, "Bugs Bunny",
  • 2:13 - 2:16
    we've got "Thumper",
  • 2:16 - 2:19
    and of course, can't
    forget the "Easter Bunny".
  • 2:21 - 2:23
    The neat thing about numbered lists is
  • 2:23 - 2:25
    that the browser takes care
    of the numbering for us.
  • 2:25 - 2:28
    So if we rearrange items,
    delete, or add new ones,
  • 2:28 - 2:30
    it always updates the numbers correctly.
  • 2:30 - 2:32
    Like if all of you tell me that you
  • 2:32 - 2:34
    don't know who "Thumper" is.
  • 2:34 - 2:36
    Then, first, I'll tell you all that you
  • 2:36 - 2:37
    should really go watch "Bambi".
  • 2:37 - 2:39
    But then I will begrudgingly move
  • 2:39 - 2:41
    "Thumper" down to the bottom.
  • 2:41 - 2:44
    And now, poor "Thumper" is number three.
  • 2:44 - 2:47
    So now you have everything
    you need to make lists.
  • 2:47 - 2:50
    Go forth and list everything.
Title:
HTML Lists (Video Version)
Description:

{'type': u'plain'}

more » « less
Video Language:
English
Duration:
02:51
Myusernamegoeshere2 edited English subtitles for HTML Lists (Video Version)

English subtitles

Revisions