< Return to Video

HTML Text Emphasis (Video Version)

  • 0:00 - 0:01
    Welcome back!
  • 0:01 - 0:04
    Are you feeling a little more comfortable
    with HTML tags
  • 0:04 - 0:06
    now that you've typed some yourself?
  • 0:06 - 0:08
    We have a bunch more tags to cover
  • 0:08 - 0:10
    so you'll be tagging
    all over the place soon.
  • 0:10 - 0:13
    Now, do you remember this
    paragraph about rabbits?
  • 0:13 - 0:18
    I'm a bit worried that the aliens
    might read it in a monotone voice.
  • 0:18 - 0:19
    And they won't pay attention
  • 0:19 - 0:22
    to the really important
    words and phrases in it.
  • 0:22 - 0:25
    So I want to markup the parts
    that they should emphasize.
  • 0:25 - 0:29
    We can start by using the `` tag,
    which stands for emphasis.
  • 0:29 - 0:32
    We use it whenever we want to to indicate
  • 0:32 - 0:34
    where we would
    emphasize a word while speaking.
  • 0:34 - 0:36
    Like, if I want the aliens to say,
  • 0:36 - 0:39
    "The most orange vegetables in OUR world."
  • 0:39 - 0:44
    Then I can wrap the
    "our" in an `` tag.
  • 0:44 - 0:46
    The browser will see the ``,
  • 0:46 - 0:50
    and then italicize the text inside of it
    to show the emphasis.
  • 0:50 - 0:52
    Now the aliens will
    really realize that I'm
  • 0:52 - 0:55
    talking about OUR world not theirs,
  • 0:55 - 0:57
    because I don't know
    anything about their world
  • 0:57 - 0:59
    and what their vegetables look like.
  • 1:00 - 1:03
    What if the aliens are
    just skimming the text?
  • 1:03 - 1:07
    What if they don't even read
    the entire amazing paragraph that I wrote?
  • 1:07 - 1:11
    In that case, I want to make sure
    a few key phrases stand out.
  • 1:11 - 1:13
    And I can use a `` tag for that.
  • 1:13 - 1:17
    Probably the most important fact,
    is how much rabbits reproduce.
  • 1:17 - 1:20
    Because I wouldn't want
    aliens taking rabbits home with them
  • 1:20 - 1:24
    and then being mad at us when the
    rabbits eventually overpopulate them
  • 1:24 - 1:26
    and take over their government.
  • 1:26 - 1:30
    So, I will wrap this
    fact in a `` tag.
  • 1:33 - 1:36
    Alright, the browser
    will see the ``,
  • 1:36 - 1:40
    and then bold the text inside of it,
    to make sure that it stands out.
  • 1:40 - 1:42
    We can even combine `` and``,
  • 1:42 - 1:44
    and put them inside of each other.
  • 1:44 - 1:46
    Like if I want the aliens to say,
  • 1:46 - 1:49
    "More than any human ever has."
  • 1:49 - 1:54
    Then I can wrap the "ever" in an `` .
  • 1:55 - 1:59
    Okay, now I'm happy, I think
    they'll really pay attention.
  • 1:59 - 2:02
    And now you've got two more
    tags in your HTML toolbox.
  • 2:02 - 2:05
    Use them, but don't abuse them.
Title:
HTML Text Emphasis (Video Version)
Description:

{'type': u'plain'}

more » « less
Video Language:
English
Duration:
02:05

English subtitles

Revisions