HTML Media

Video

HTML
<video width="400" controls poster="thumbnail.jpg">
    <source src="lecture.mp4" type="video/mp4">
    <source src="lecture.webm" type="video/webm">
    Your browser does not support the video tag.
</video>

Audio

HTML
<audio controls>
    <source src="podcast.mp3" type="audio/mpeg">
</audio>
AttributeEffect
controlsShows play, pause and volume controls
autoplayStarts automatically (usually also needs muted)
loopRepeats
mutedStarts silent

Iframe (Embedding Pages and Videos)

HTML
<iframe width="560" height="315"
        src="https://www.youtube.com/embed/VIDEO_ID"
        title="Lecture video" allowfullscreen></iframe>

HTML Entities

CharacterEntity
<&lt;
>&gt;
&&amp;
©&copy;
non-breaking space&nbsp;
Track your progress through the HTML course