Students will learn how to enhance a webpage by adding images and embedding videos while ensuring accessibility.
Discuss the importance of multimedia in web design (engagement, visual appeal, and accessibility). Introduce HTML elements: <img>
for images and <iframe>
for embedding videos.
Basic Syntax:
<img src="image.jpg" width="400" height="300" alt="Description of the image">
Explanation:
src
: Specifies the image source.width
& height
: Controls the image size.alt
: Provides alternative text for accessibility.Basic Syntax:
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
Explanation:
src
: The YouTube embed link.width
& height
: Controls video size.allowfullscreen
: Enables full-screen mode.alt
text for images.<img>
and <iframe>
.