Instead of embedding one video at a time, YouTube also supports embedding a whole playlist, complete with its own queue and next/previous navigation.
Finding the playlist ID
Open the playlist on YouTube and look at the URL: the part after list= is the playlist ID, for example youtube.com/playlist?list=PLAYLIST_ID. If you are viewing a video that is part of a playlist, the same list= parameter often appears in that watch URL too.
The playlist embed code
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/videoseries?list=PLAYLIST_ID" title="YouTube playlist player" allowfullscreen></iframe>
The key difference from a single-video embed is the path: /embed/videoseries instead of /embed/VIDEO_ID, combined with the list parameter carrying the playlist’s ID.
Starting on a specific video within the playlist
Add an index parameter (counting from 0) to start somewhere other than the first video, for example &index=2 to start on the third video in the list.
Combining a single video with playlist context
If you want to embed one particular video but still show the surrounding playlist’s next/previous queue, keep the video’s own ID in the /embed/ path and add the list parameter alongside it, rather than switching to /embed/videoseries.
Making it responsive
Playlist embeds work with the same 16:9 responsive wrapper technique as single videos; nothing about the layout changes. Use the “Treat as playlist” option in the embed code generator when your link includes a list= parameter, and it builds the correct videoseries URL automatically.