Lesson 47 +40 XP

Project 7: Media Landing Page

Let's hear it! A landing page with a video, an audio clip, an embedded video, and a details box.

Include all of these

Code

html
<! - Video - >
<video src="teaser.mp4" controls width="480" height="270"
  poster="poster.png">Your browser doesn't support video.</video>

<! - Audio - >
<audio src="intro.mp3" controls>Your browser doesn't support audio.</audio>

<! - Embedded YouTube - >
<iframe src="https://www.youtube.com/embed/VIDEO_ID"
  width="560" height="315" allowfullscreen></iframe>

<! - Extra reveal - >
<details>
  <summary>Watch the behind-the-scenes</summary>
  <p>Extra detail hidden until opened.</p>
</details>

Gotchas

  • controls shows the play bar; without it the media is invisible to users.
  • &lt;video&gt; and &lt;audio&gt; keep fallback text for very old browsers.
  • &lt;iframe&gt; embeds another page; add allowfullscreen for YouTube.

Checklist

  • [ ] One &lt;video&gt; with controls
  • [ ] One &lt;audio&gt; with controls
  • [ ] One embedded &lt;iframe&gt;
  • [ ] A &lt;details&gt; on the page
  • [ ] A &lt;progress&gt; or &lt;meter&gt; somewhere

TL;DR

Media landing = video/audio/iframe + details + a progress bar. Controls matter.