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:03,002
- Let's talk about bold and italic.
2
00:00:03,002 --> 00:00:06,005
There are four HTML elements to talk about here,
3
00:00:06,005 --> 00:00:09,002
two for bold and two for italic.
4
00:00:09,002 --> 00:00:12,000
But why are there two of each?
5
00:00:12,000 --> 00:00:14,009
Well, let's look at this example.
6
00:00:14,009 --> 00:00:17,001
If we are typesetting this for a book,
7
00:00:17,001 --> 00:00:19,005
we highlight the text that we want to italicize
8
00:00:19,005 --> 00:00:21,007
and hit an I button somewhere,
9
00:00:21,007 --> 00:00:23,009
and we get italics, we're done.
10
00:00:23,009 --> 00:00:25,009
Then, when that text is printed,
11
00:00:25,009 --> 00:00:29,005
those parts of the text are typeset in an italic font.
12
00:00:29,005 --> 00:00:32,003
There are all kinds of rules in grammar and typography
13
00:00:32,003 --> 00:00:35,003
in book publishing, journalism, magazine production,
14
00:00:35,003 --> 00:00:39,005
that tell us when we should italicize or bold things.
15
00:00:39,005 --> 00:00:41,004
If we follow those rules, we're good,
16
00:00:41,004 --> 00:00:43,006
we've done it right, right?
17
00:00:43,006 --> 00:00:46,001
Well, actually, the truth is,
18
00:00:46,001 --> 00:00:49,009
there are two different reasons for using italics here.
19
00:00:49,009 --> 00:00:52,006
The word "favorite" is italicized
20
00:00:52,006 --> 00:00:54,006
because we're making a point.
21
00:00:54,006 --> 00:00:58,001
This is really important, this is our favorite character.
22
00:00:58,001 --> 00:01:00,009
"Favorite" is italicized for emphasis.
23
00:01:00,009 --> 00:01:03,002
The phrase "Sesame Street" is not
24
00:01:03,002 --> 00:01:05,004
being italicized for emphasis.
25
00:01:05,004 --> 00:01:09,008
It's italicized because it's the title of a television show.
26
00:01:09,008 --> 00:01:13,004
In HTML, we want to distinguish between these two use cases.
27
00:01:13,004 --> 00:01:14,009
We want the browser to know when
28
00:01:14,009 --> 00:01:17,002
things should be verbally emphasized,
29
00:01:17,002 --> 00:01:21,004
versus when they're simply visually distinguished.
30
00:01:21,004 --> 00:01:23,008
It's easiest to understand this if we think about
31
00:01:23,008 --> 00:01:25,008
reading the sentence out loud.
32
00:01:25,008 --> 00:01:27,007
If I just say, "My favorite character
33
00:01:27,007 --> 00:01:31,005
"from Sesame Street is Grover," the emphasis is missing.
34
00:01:31,005 --> 00:01:33,007
If I say, "My favorite characters
35
00:01:33,007 --> 00:01:37,008
"from Sesame Street is Grover," that sounds weird.
36
00:01:37,008 --> 00:01:40,006
Why am I saying "Sesame Street" like that?
37
00:01:40,006 --> 00:01:42,005
We want it to come across like this:
38
00:01:42,005 --> 00:01:45,007
"My favorite character from Sesame Street is Grover."
39
00:01:45,007 --> 00:01:48,001
A verbal emphasis goes on "favorite"
40
00:01:48,001 --> 00:01:50,005
and not on "Sesame Street."
41
00:01:50,005 --> 00:01:55,001
We can convey this in HTML by using two different elements.
42
00:01:55,001 --> 00:02:00,005
The I element is used to apply to only visual italics,
43
00:02:00,005 --> 00:02:04,002
while the em element is used to put emphasis on something.
44
00:02:04,002 --> 00:02:05,009
We aren't just typesetting
45
00:02:05,009 --> 00:02:07,009
when we're choosing elements like these.
46
00:02:07,009 --> 00:02:11,008
We're conveying semantic meaning, human meaning.
47
00:02:11,008 --> 00:02:13,005
It works like this.
48
00:02:13,005 --> 00:02:16,006
Let's wrap the word "favorite" in em tags,
49
00:02:16,006 --> 00:02:27,005
while wrapping "Sesame Street" in I tags.
50
00:02:27,005 --> 00:02:30,009
We can see that visually, they look exactly the same.
51
00:02:30,009 --> 00:02:34,000
But don't be tricked, they're not the same.
52
00:02:34,000 --> 00:02:37,000
It's important, actually, that we don't just get lazy
53
00:02:37,000 --> 00:02:39,007
and only use one of these for everything.
54
00:02:39,007 --> 00:02:42,003
They potentially create very different results
55
00:02:42,003 --> 00:02:45,003
for anyone listening to the content.
56
00:02:45,003 --> 00:02:47,003
There are also two elements we can use
57
00:02:47,003 --> 00:02:49,005
to mark something as bold.
58
00:02:49,005 --> 00:02:54,008
The strong element conveys importance, seriousness, urgency.
59
00:02:54,008 --> 00:02:58,003
We should use it to mean, hey, this should be strong.
60
00:02:58,003 --> 00:03:01,005
Like emphasis, it conveys meaning.
61
00:03:01,005 --> 00:03:04,002
The B element is like the I element.
62
00:03:04,002 --> 00:03:07,007
It's generic, neutral, it doesn't mean anything.
63
00:03:07,007 --> 00:03:09,004
It just gives us a way to mark something
64
00:03:09,004 --> 00:03:11,006
so it can be styled as bold.
65
00:03:11,006 --> 00:03:16,004
There's no implication of an alternative voice or mood.
66
00:03:16,004 --> 00:03:20,001
Here are two examples: "Warning! Do not be late."
67
00:03:20,001 --> 00:03:22,002
We want the word "warning" to be marked
68
00:03:22,002 --> 00:03:24,009
as extra important, to be strong.
69
00:03:24,009 --> 00:03:27,000
Or we can simply use the strong
70
00:03:27,000 --> 00:03:29,006
to specify that one part of a phrase
71
00:03:29,006 --> 00:03:31,005
is more important than another.
72
00:03:31,005 --> 00:03:34,008
"Chocolate and coffee" is the key part of the headline.
73
00:03:34,008 --> 00:03:38,007
"And other things I crave" is a bit more of a throwaway.
74
00:03:38,007 --> 00:03:41,007
It's still part of the h1, but it's not as important.
75
00:03:41,007 --> 00:03:45,003
If instead we want to bold certain words in a passage of text
76
00:03:45,003 --> 00:03:49,006
without conveying any meaning, we can use the B element.
77
00:03:49,006 --> 00:03:53,001
Here, I have a paragraph where I want a certain phrase
78
00:03:53,001 --> 00:03:54,009
to jump out for the reader.
79
00:03:54,009 --> 00:03:57,008
But I don't want to convey any special meaning
80
00:03:57,008 --> 00:03:59,005
to the browser or to a screen reader.
81
00:03:59,005 --> 00:04:01,009
So I'll use the B element.
82
00:04:01,009 --> 00:04:04,000
Now, don't get confused.
83
00:04:04,000 --> 00:04:06,002
If we simply want to make something on the page
84
00:04:06,002 --> 00:04:07,008
typeset in a bold font,
85
00:04:07,008 --> 00:04:10,005
we don't use the strong or B element.
86
00:04:10,005 --> 00:04:13,002
We just use CSS to change the weight of the type
87
00:04:13,002 --> 00:04:15,008
and apply the style to any element that we want.
88
00:04:15,008 --> 00:04:19,000
Maybe our h2 headlines are thin and condensed
89
00:04:19,000 --> 00:04:22,000
and our h3 headlines are thick and wide.
90
00:04:22,000 --> 00:04:26,005
We'll just use CSS and define the styling for h2 and h3.
91
00:04:26,005 --> 00:04:29,005
The B element gives us a way to mark something
92
00:04:29,005 --> 00:04:32,006
that otherwise doesn't have an element.
93
00:04:32,006 --> 00:04:36,007
The recommendation is to use it at the last resort.
94
00:04:36,007 --> 00:04:39,002
Those are the four elements that we have
95
00:04:39,002 --> 00:04:42,006
to mark up text to be italicized or bolded,
96
00:04:42,006 --> 00:04:44,008
two that convey a certain meaning,
97
00:04:44,008 --> 00:04:48,007
a human language reason for the bold or italic,
98
00:04:48,007 --> 00:04:55,000
and two that are without meaning, em, I, strong, and B.
7536
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.