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,003
- Let's talk about headlines.
2
00:00:02,003 --> 00:00:05,003
Webpages often have a lot of titles,
3
00:00:05,003 --> 00:00:07,006
headlines and sub-headlines.
4
00:00:07,006 --> 00:00:09,001
In long passages of text,
5
00:00:09,001 --> 00:00:11,002
they help break up the pages content
6
00:00:11,002 --> 00:00:13,002
to make it easier for people to understand
7
00:00:13,002 --> 00:00:16,008
the structure of what's on the page.
8
00:00:16,008 --> 00:00:18,002
On Landing pages,
9
00:00:18,002 --> 00:00:20,005
those headlines are the content.
10
00:00:20,005 --> 00:00:22,008
Titles of things people can click
11
00:00:22,008 --> 00:00:24,008
and go on to read more.
12
00:00:24,008 --> 00:00:27,002
There are headlines everywhere.
13
00:00:27,002 --> 00:00:28,008
Let's look at the HTML elements
14
00:00:28,008 --> 00:00:30,006
for marking up headlines.
15
00:00:30,006 --> 00:00:33,002
There isn't just one element for headlines,
16
00:00:33,002 --> 00:00:34,003
there are six,
17
00:00:34,003 --> 00:00:39,005
h1, h2, h3, h4, h5, and h6.
18
00:00:39,005 --> 00:00:41,009
Let's look at these running in a browser.
19
00:00:41,009 --> 00:00:43,006
You can see that each headline
20
00:00:43,006 --> 00:00:45,008
has a different effect visually.
21
00:00:45,008 --> 00:00:47,003
These ideas of hierarchy
22
00:00:47,003 --> 00:00:50,001
also carry through to all the non-visual ways
23
00:00:50,001 --> 00:00:52,001
the browser understand and communicate
24
00:00:52,001 --> 00:00:53,009
about the page.
25
00:00:53,009 --> 00:00:55,005
H1 is the biggest,
26
00:00:55,005 --> 00:00:56,007
or rather the loudest,
27
00:00:56,007 --> 00:00:58,002
the most prominent,
28
00:00:58,002 --> 00:01:00,003
h6 is the smallest, the quietest,
29
00:01:00,003 --> 00:01:02,007
the most sub, sub, sub-headline,
30
00:01:02,007 --> 00:01:05,000
and the rest fits somewhere in-between
31
00:01:05,000 --> 00:01:07,009
in a range of importance or prominence.
32
00:01:07,009 --> 00:01:08,009
In some ways,
33
00:01:08,009 --> 00:01:10,002
this is pretty straight forward,
34
00:01:10,002 --> 00:01:11,007
and fairly easy to understand,
35
00:01:11,007 --> 00:01:14,009
choose which level of headline to mark something.
36
00:01:14,009 --> 00:01:18,003
Type the opening tag, the h1 at the beginning,
37
00:01:18,003 --> 00:01:21,001
and type the closing tag at the end.
38
00:01:21,001 --> 00:01:23,008
In other ways, it can be quite tricky to figure out
39
00:01:23,008 --> 00:01:26,007
which level of headline to use when.
40
00:01:26,007 --> 00:01:29,000
Let's look at an example.
41
00:01:29,000 --> 00:01:30,009
I've got several paragraphs of text
42
00:01:30,009 --> 00:01:33,004
that are all marked up with paragraph tags,
43
00:01:33,004 --> 00:01:35,006
and before those, there are two headlines,
44
00:01:35,006 --> 00:01:39,006
the first is marked up with an h1 and the second with an h2.
45
00:01:39,006 --> 00:01:42,006
We can see that the h1 is larger than the h2,
46
00:01:42,006 --> 00:01:44,009
the h1 is the main title,
47
00:01:44,009 --> 00:01:48,009
and the h2 is the subtitle for this content.
48
00:01:48,009 --> 00:01:51,007
If I come over to the CSS window, I can apply some CSS
49
00:01:51,007 --> 00:01:54,003
that I wrote earlier and you see this style
50
00:01:54,003 --> 00:01:55,006
to look more modern.
51
00:01:55,006 --> 00:01:59,008
HTML without any CSS looks very 1994,
52
00:01:59,008 --> 00:02:03,001
but don't get confused, every website uses CSS
53
00:02:03,001 --> 00:02:04,008
to make the HTML elements look
54
00:02:04,008 --> 00:02:08,002
however it is the designer wants them to look visually.
55
00:02:08,002 --> 00:02:11,008
We're not going to pick a headline level based on how it looks,
56
00:02:11,008 --> 00:02:15,002
we're going to make a choice based on what it means.
57
00:02:15,002 --> 00:02:18,007
It makes sense that we created the main title into an h1
58
00:02:18,007 --> 00:02:20,001
and created the subheading
59
00:02:20,001 --> 00:02:24,000
with the next level down after the title in h2.
60
00:02:24,000 --> 00:02:25,008
Let's look at how the New York Times
61
00:02:25,008 --> 00:02:27,005
uses three levels of headlines
62
00:02:27,005 --> 00:02:30,005
to mark up this section landing page.
63
00:02:30,005 --> 00:02:35,008
The title for the whole page, Dance, is an h1 headline,
64
00:02:35,008 --> 00:02:39,001
all of the article titles are h2 headlines,
65
00:02:39,001 --> 00:02:41,002
and the little kicker headlines
66
00:02:41,002 --> 00:02:43,003
with the little labels like FALL PREVIEW
67
00:02:43,003 --> 00:02:46,004
which tell the reader which type of content it is,
68
00:02:46,004 --> 00:02:49,000
those are all h3 headlines.
69
00:02:49,000 --> 00:02:51,009
You'll notice that some of the article titles
70
00:02:51,009 --> 00:02:54,005
are displayed in a larger font size,
71
00:02:54,005 --> 00:02:57,001
and some of them are displayed smaller,
72
00:02:57,001 --> 00:03:00,006
but all of them are semantically h2.
73
00:03:00,006 --> 00:03:03,003
You can that this hierarchical system of headlines
74
00:03:03,003 --> 00:03:05,004
provides the browser with meaning.
75
00:03:05,004 --> 00:03:07,003
It conveys what's most important
76
00:03:07,003 --> 00:03:09,002
versus what's less important.
77
00:03:09,002 --> 00:03:12,007
It lets all the article headlines be the same kind,
78
00:03:12,007 --> 00:03:15,004
all of them are h2.
79
00:03:15,004 --> 00:03:17,006
This is incredibly important for anyone
80
00:03:17,006 --> 00:03:20,002
who is navigating the page with a screen reader.
81
00:03:20,002 --> 00:03:22,001
Making headline levels into
82
00:03:22,001 --> 00:03:24,003
an intentional system of hierarchy
83
00:03:24,003 --> 00:03:25,007
provides a key interface
84
00:03:25,007 --> 00:03:28,004
for navigating a site through sound.
85
00:03:28,004 --> 00:03:30,002
It may be that someone else on your team
86
00:03:30,002 --> 00:03:32,001
has already defined use cases
87
00:03:32,001 --> 00:03:34,001
for each different level of headline,
88
00:03:34,001 --> 00:03:36,009
and you want to follow their guidance.
89
00:03:36,009 --> 00:03:38,002
Many big teams these days
90
00:03:38,002 --> 00:03:40,000
have already created a design system,
91
00:03:40,000 --> 00:03:42,005
and when everyone follows that system,
92
00:03:42,005 --> 00:03:46,004
the site has more consistency and semantic success.
93
00:03:46,004 --> 00:03:49,003
If you are creating such a system for your team,
94
00:03:49,003 --> 00:03:51,008
or perhaps just for yourself,
95
00:03:51,008 --> 00:03:54,005
it pays off to spend a little bit of time
96
00:03:54,005 --> 00:03:56,007
thinking about how you want to use
97
00:03:56,007 --> 00:03:59,009
the different levels of headlines across the whole site
98
00:03:59,009 --> 00:04:02,001
and come up with a plan.
99
00:04:02,001 --> 00:04:05,008
You do have some freedom here to decide how and when
100
00:04:05,008 --> 00:04:08,002
you want to use each of the six levels of headline.
101
00:04:08,002 --> 00:04:10,003
There isn't a strict formula.
102
00:04:10,003 --> 00:04:13,002
You just want to use the six levels of options
103
00:04:13,002 --> 00:04:17,000
to create semantic hierarchy in your use of headlines.
7361
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.