2.4. Class Exercise (10 minutes)
Instructions for the Exercise:
// Some code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class Exercise Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is a webpage created during the class exercise. It includes text, an image, and a media file.</p>
<!-- Adding an image -->
<img src="https://www.example.com/sample-image.jpg" alt="A description of the image" width="300">
<!-- Adding a video -->
<h2>Embedded Video</h2>
<video width="320" height="240" controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<!-- Alternatively, they could add audio instead of a video -->
<h2>Embedded Audio</h2>
<audio controls>
<source src="https://www.w3schools.com/html/horse.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
</body>
</html>
Feedback and Peer Review:
Last updated