HTML MediaLesson 53Free preview
HTML YouTube
This lesson is part of HTML · All levels
Summary
YouTube videos can be displayed on the page by inserting the embed code of the <iframe> element. Just change the video ID to the src address, and then adjust the width and height as needed. This allows visitors to watch videos without leaving your page.
Key points
- YouTube videos are inserted with <iframe> embed address
- Change the video ID at the end of the embedded URL
- Adjust width and height to be proportional
- Add the title attribute to accessibility
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.