--- id: html-youtube title: "HTML YouTube" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["YouTube embed", "HTML YouTube video", "embed YouTube iframe", "YouTube player parameters", "HTML video YouTube"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["html", "web", "frontend", "w3schools", "youtube", "video", "iframe"] raw_sources: ["https://www.w3schools.com/html/html_youtube.asp"] applied_in: [] github_commit: "" --- # [[HTML YouTube]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) The easiest way to play videos in HTML is to embed them from YouTube using an ` ``` **Autoplay + Mute** You can let your video start playing automatically when a user visits the page by adding `autoplay=1` to the YouTube URL. Chromium browsers do not allow autoplay in most cases; however, muted autoplay is always allowed. Add `mute=1` after `autoplay=1` to let your video start playing automatically (but muted). [S1] ```html ``` **Loop** Use the loop parameter to repeat playback. To loop a single video you must also pass it as the playlist. [S1] ```html ``` | Parameter value | Meaning | |---|---| | `loop=0` (default) | The video will play only once | | `loop=1` | The video will loop (forever) | **Controls** The `controls` parameter toggles the player controls. [S1] ```html ``` | Parameter value | Meaning | |---|---| | `controls=0` | Player controls does not display | | `controls=1` (default) | Player controls is displayed | ## πŸ› οΈ 적용 사둀 (Applied in summary) The embed snippets above are the canonical applied examples: a basic embedded player and three configured variants (muted autoplay, looping, hidden controls). No external project/commit applications found in the source. ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) Generic embed (HTML): ```html ``` Muted autoplay (HTML): ```html ``` ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) No contradictions found in the source. Note the browser-policy constraint that shapes usage: unmuted autoplay is blocked in most Chromium browsers, so reliable autoplay requires `mute=1`. [S1] ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual (μ‹€μ œ 적용 사둀 발견 μ‹œ applied/validated둜 승격 κ°€λŠ₯) - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.89 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[HTML Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[HTML Video]], [[HTML Audio]], [[HTML Iframes]], [[HTML Media]] - **μ°Έμ‘° λ§₯락:** Referenced whenever a page needs to display video without self-hosting media files. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” HTML YouTube β€” https://www.w3schools.com/html/html_youtube.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "HTML YouTube" page (Astra wiki-curation, P-Reinforce v3.1 format).