# Lite YouTube (``) A YouTube video as a poster link that becomes the player when activated. Nothing is requested from YouTube before that: no script, no thumbnail, no preconnect. The poster is the page's own image. Self-registering, light DOM. ```html Bande-annonce : Maman, j’ai raté l’avion ``` ## The markup | where | what | notes | |---|---|---| | host `video` | the YouTube video id | 11 characters of `A–Z a–z 0–9 _ -`; anything else leaves the link alone (dev warning) | | host `title` | the player's accessible name | falls back to the poster's `alt` | | `` | the video on YouTube | the no-JS path, and a modified click's | | `` | the poster, served by the page | covers the 16:9 box (`object-fit: cover`) | | `.play` | the play badge | optional; centred, at least 44 px; mark it `aria-hidden="true"` (the link's name is the poster's alt) | ## Behavior - Activating the link (click, tap, Enter on the focused link) replaces the element's content with an iframe of `https://www.youtube-nocookie.com/embed/