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,003
- Let's look at the paragraph element in action.
2
00:00:03,003 --> 00:00:06,006
Here, I've got three paragraphs of text.
3
00:00:06,006 --> 00:00:08,009
Now, where am I?
4
00:00:08,009 --> 00:00:11,006
Well, this is a website called CodePen,
5
00:00:11,006 --> 00:00:14,009
where anyone can quickly make a demo or an experiment
6
00:00:14,009 --> 00:00:18,005
by typing HTML, CSS, and JavaScript into these panes.
7
00:00:18,005 --> 00:00:19,008
And it will show you the results
8
00:00:19,008 --> 00:00:21,007
on another part of the page.
9
00:00:21,007 --> 00:00:23,004
You could surf around CodePen
10
00:00:23,004 --> 00:00:26,004
and see other people's little coding experiments.
11
00:00:26,004 --> 00:00:28,005
If you bring up this demo in your browser,
12
00:00:28,005 --> 00:00:29,005
then you can edit it,
13
00:00:29,005 --> 00:00:32,000
messing around and seeing what happens.
14
00:00:32,000 --> 00:00:34,004
You don't need a CodePen account to try out these demos.
15
00:00:34,004 --> 00:00:35,006
Mess around with it.
16
00:00:35,006 --> 00:00:37,008
If you want to save a copy of these demos for yourself,
17
00:00:37,008 --> 00:00:40,000
along with any changes that you want to make,
18
00:00:40,000 --> 00:00:42,002
a basic CodePen account is free.
19
00:00:42,002 --> 00:00:45,007
And don't worry, you can change as much of these demos
20
00:00:45,007 --> 00:00:48,004
as you want, and you won't be changing the originals.
21
00:00:48,004 --> 00:00:51,001
CodePen makes you your own copy.
22
00:00:51,001 --> 00:00:53,005
I thought I'd use CodePen for this to make it easier
23
00:00:53,005 --> 00:00:55,000
for us to get right to what matters
24
00:00:55,000 --> 00:00:56,005
without having to spend a lot of time
25
00:00:56,005 --> 00:00:58,006
on how to set up a coding environment.
26
00:00:58,006 --> 00:01:01,006
Here, I've got an HTML window on the left
27
00:01:01,006 --> 00:01:04,004
and a window for the results on the right.
28
00:01:04,004 --> 00:01:07,001
But these don't look like paragraphs.
29
00:01:07,001 --> 00:01:10,000
The browser is displaying my three paragraphs
30
00:01:10,000 --> 00:01:12,001
as one big blob.
31
00:01:12,001 --> 00:01:13,009
We need to mark up the paragraph
32
00:01:13,009 --> 00:01:16,007
so the browser knows that they're there.
33
00:01:16,007 --> 00:01:19,007
Right here I'll add an opening
tag
34
00:01:19,007 --> 00:01:22,002
and at the end, a closing
tag.
35
00:01:22,002 --> 00:01:24,008
Now the browser sees that first paragraph,
36
00:01:24,008 --> 00:01:26,006
and the rest is still a blob.
37
00:01:26,006 --> 00:01:28,000
We'll wrap the next two paragraphs
38
00:01:28,000 --> 00:01:30,008
in a paragraph element as well.
39
00:01:30,008 --> 00:01:34,000
Now we've got HTML describing this content for the browser.
40
00:01:34,000 --> 00:01:36,005
The browser knows that these are paragraphs of text
41
00:01:36,005 --> 00:01:39,000
because we told it so.
3017
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.