Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
- Earlier, we took a look at the video element,
and I mentioned that it's possible
you're not going to to do video that way.
It's likely that you'll use a video hosting service,
and embed the video player
that they provide onto your webpage.
Embedding is taking content from one site
and placing it into the middle of a page on another site.
There's all kinds of content
that you might want to embed onto a page.
You can embed a map from Google or Mapbox.
You can embed a code demo from CodePen or Glitch.
You can embed a slide deck from Speaker Deck or Notist.
It's common to embed something complex
from a service that takes care of all the hard parts
for you.
You don't have to figure out
how to build a mapping service,
or a slide deck system,
or a code demo platform,
or an adaptive bitrate server.
You go to someone else's toolkit and do all of that,
and then embed the results onto your website.
So what HTML do we need to know to help us do this?
Well, basically, you get the HTML
from the service that you are using.
Let's use YouTube as an example.
Here is a YouTube video that I made.
And let's say I want to post it on my own website,
so people can find it on my domain name
and not have to go to the YouTube website.
I'll look for a share button,
or some other clue
about where I can find the embed code.
Here it is.
Share.
I see where it says Embed, and let me click that.
And I see some options,
Privacy Enhanced, that sounds good.
I'll click Copy,
and I'll get some code copied to my clipboard.
I'll past this into my HTML,
and voila, now I have a video embedded on the page.
We don't really need to understand what all of this says.
The engineers at YouTube wrote it all for us.
Although, now that we know how to read HTML,
we can see a lot here that we recognize.
The iframe element has several attributes on it,
including height and width.
We could adjust those.
Src is going to point to the source of the video file.
Iframes are powerful.
There are definitely some security considerations to be had
about pulling in code from other sites like this.
So if you're using a CMS that someone else set up,
like it's your job to post content on a WordPress website,
or a Drupal website,
there's a good chance that you can't just paste
some random embed code from another website
into your system.
There's a good chance that the CMS is set up
with a different way to allow a URL
or a shortcode from a specifically white-labeled source.
And you'll want to talk to someone
who knows how to use your CMS
to find out how to embed things like YouTube videos.
If you're the person building a site,
you probably want to think about how security will work
when it comes to the iframe element.
If a bunch of different people
are going to be entering content into a system,
you're not going to want to just allow all iframes.
Think about the security.
If it's just you,
posting your own videos
on your own website,
then it will be fine.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.