Home › HTML › HTML5
HTML Media
Video
HTML Copy
<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 Copy
<audio controls>
<source src ="podcast.mp3" type ="audio/mpeg" >
</audio >
Attribute Effect
controls Shows play, pause and volume controls
autoplay Starts automatically (usually also needs muted)
loop Repeats
muted Starts silent
Iframe (Embedding Pages and Videos)
HTML Copy
<iframe width ="560" height ="315"
src ="https://www.youtube.com/embed/VIDEO_ID"
title ="Lecture video" allowfullscreen> </iframe >
HTML Entities
Character Entity
< < > >
& & © ©
non-breaking space
Mark as complete Track your progress through the HTML course