--- id: html-media title: "HTML Media" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["HTML multimedia", "media formats", "web media", "audio formats", "video formats"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["html", "web", "frontend", "media", "multimedia", "html5", "w3schools"] raw_sources: ["https://www.w3schools.com/html/html_media.asp"] applied_in: [] github_commit: "" --- # [[HTML Media]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) Web multimedia is anything you can see or hear β€” images, music, sound, video, animations β€” but only a small set of formats (MP4/WebM/Ogg for video, MP3/WAV/Ogg for audio) is actually supported by the HTML standard across browsers. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **Multimedia is broad** β€” it can be almost anything you can hear or see: images, music, sound, videos, records, films, animations, and more. [S1] - **Browsers evolved** β€” early web browsers supported only text in a single font and color; modern browsers support colors, fonts, images, and multimedia. [S1] - **Formats matter** β€” multimedia files have their own formats and extensions; only some are supported by HTML. [S1] - **HTML-supported video** β€” only MP4, WebM, and Ogg video are supported by the HTML standard. [S1] - **HTML-supported audio** β€” only MP3, WAV, and Ogg audio are supported by the HTML standard. [S1] ## 🧩 μΆ”μΆœλœ νŒ¨ν„΄ (Extracted patterns) - **Format-by-extension pattern** β€” a media file's container/codec is identified by its extension (.mp4, .webm, .ogg, .mp3, .wav). [S1] - **HTML-standard subset pattern** β€” many formats exist, but author for the HTML-supported subset (MP4/WebM/Ogg, MP3/WAV/Ogg) for cross-browser playback. [S1] - **Recommended-format pattern** β€” MP4 is supported by all browsers and recommended by YouTube; MP3 is supported by all browsers for audio. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) **What is multimedia?** Multimedia on the web is sound, music, videos, movies, and animations. Multimedia comes in many different formats β€” almost anything you can hear or see: images, music, sound, videos, records, films, animations, and more. [S1] **Browser support** β€” web pages often contain multimedia elements of different types and formats. Early web browsers had support for only text, limited to a single font in a single color. Later browsers added support for colors, fonts, images, and multimedia. [S1] **Common video formats** β€” multimedia elements (like audio or video) are stored in media files; the most common way to discover the type is to look at the file extension: [S1] | Format | File | Description | |---|---|---| | MPEG | .mpg, .mpeg | One of the first popular video formats for the web; no longer supported in HTML | | AVI | .avi | Developed by Microsoft; commonly used in video cameras and TV hardware; plays well on Windows but not in web browsers | | WMV | .wmv | Windows Media Video, developed by Microsoft; plays well on Windows but not in web browsers | | QuickTime | .mov | Developed by Apple; plays well on Apple computers but not in web browsers | | RealVideo | .rm, .ram | Developed by Real Media for video streaming with low bandwidths; does not play in web browsers | | Flash | .swf, .flv | Developed by Macromedia, often requires an extra plug-in; no longer supported | | Ogg | .ogg | Theora Ogg, supported by HTML | | WebM | .webm | Developed by Mozilla, Opera, Adobe, and Google; supported by HTML | | MP4 | .mp4 | Designed to store video and audio; commonly used in video cameras and TV hardware; supported by all browsers and recommended by YouTube | **Note:** Only MP4, WebM, and Ogg video are supported by the HTML standard. [S1] **Common audio formats** β€” [S1] | Format | File | Description | |---|---|---| | MIDI | .mid, .midi | Format for electronic music devices; very small files; not supported directly by web browsers | | RealAudio | .rm, .ram | Developed by Real Media for audio streaming at low bandwidths; does not play in web browsers | | WMA | .wma | Windows Media Audio; plays well on Windows but not in web browsers | | AAC | .aac | Advanced Audio Coding, developed by Apple as the default format for iTunes; does not play in web browsers | | WAV | .wav | Developed by IBM and Microsoft; plays well on Windows, Macintosh, and Linux; supported by HTML | | Ogg | .ogg | Developed by the Xiph.Org Foundation; supported by HTML | | MP3 | .mp3 | The most popular format for music players; combines good compression with high quality; supported by all browsers | | MP4 | .mp4 | A video format, but can also be used for audio; supported by all browsers | **Note:** Only MP3, WAV, and Ogg audio are supported by the HTML standard. [S1] ## πŸ› οΈ 적용 사둀 (Applied in summary) The format tables above are the practical takeaway: when adding `