Audio and Video
HTML5 provides native elements for embedding audio and video content without plugins. These elements offer built-in controls and accessibility features.
The Video Element
Loading HTML Playground...
Video attributes:
controls- Show playback controlsposter- Image shown before playbackwidth/height- Dimensionsautoplay- Auto-start (often blocked)loop- Repeat playbackmuted- Start muted
Multiple Video Sources
Loading HTML Playground...
The Audio Element
Loading HTML Playground...
Audio attributes:
controls- Show audio controlsautoplay- Auto-startloop- Repeatmuted- Start mutedpreload- Hint for preloading
Video with Captions
Loading HTML Playground...
Track element kinds:
subtitles- Translationscaptions- Dialogue + sound descriptionsdescriptions- Video descriptions for blind userschapters- Chapter navigation
Responsive Video
Loading HTML Playground...
Embedding External Videos
Loading HTML Playground...
Autoplay Considerations
Loading HTML Playground...
Exercise: Add Video with Captions
Create a video player with captions support:
Loading HTML Exercise...
Native video and audio elements provide accessible, no-plugin media playback!
التالي · الدرس 14 من 32
Unordered Lists
قراءة 2 دقيقة
أنهيت 13 من 32 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

