Skip to main content

Embedding a video

Embed a video

This is what you get if you go to YouTube, click share and copy the embed code:

<iframe width="560" height="315" src="https://www.youtube.com/embed/hV8r0I5f1LQ?si=M8Qq8aVS7S-1euWV" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

This is what it looks like but with the p tag added around it to centre it. And the title changed:

<p class="align-center"><iframe width="560" height="315" src="https://www.youtube.com/embed/hV8r0I5f1LQ?si=M8Qq8aVS7S-1euWV" title="The World in Flux" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></p>