Add Video to Webpages with Video and iFrame Elements

Опубликовано: 20 Март 2021
на канале: Craig A. Bourne
13,603
177

► Embedding video was not always an easy endeavor. Before HTML5, web browsers did not have a universal standard for defining media files as we do now and the web was short on the rich interactive media experiences we take for granted.

Now we have the HTML video and iframe elements which give us two different ways to include video on our web pages.

The iframe element allows us to embed one web page or parts of a web page into another. Websites like YouTube and Vimeo give us a selection of options to use the iframe element to embed their videos on our web pages.

The HTML video element allows us to add videos to our web pages from a local source - like from our own computer.

We will look at how we can adjust the size of a video and make it responsive. We also learn how to add video controls using attributes and how to make videos autoplay and loop.

► Timestamps:
0:00 Start
1:30 The video element
1:55 MDN page on the video element
2:15 Creating a video element
2:42 The src attribute
3:02 Live Server
3:32 We need attributes to use the video element correctly
4:02 Units and the width attribute
5:22 Video is an inline element
6:22 Video controls
7:51 Autoplay & looping
8:37 Thumbnails
9:51 Embedding video from external sources
10:20 YouTube embedding
12:01 Vimeo embedding
12:33 Summary

► Links used in the video:
MDN Video Element: https://developer.mozilla.org/en-US/d...
MDN iFrame Element: https://developer.mozilla.org/en-US/d...

SpaceX video from YouTube:    • "The Falcon has landed" | Recap of Fa...  
SpaceX video from Vimeo: https://vimeo.com/64615482

► The HTML for Absolute Beginners Playlist:    • HTML for Absolute Beginners  

► Social Media:
  / craigabourne  
  / craigabourne  

► Code & Projects:
https://github.com/craigabourne
https://codepen.io/craigabourne


Смотрите видео Add Video to Webpages with Video and iFrame Elements онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Craig A. Bourne 20 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 13,603 раз и оно понравилось 177 людям.