Open In App

How to embed a YouTube Video in a Bootstrap Page?

To embed a YouTube video in a Bootstrap page, you can use the responsive embed-responsive class along with an iframe element. This ensures that the video scales appropriately on different devices.

Syntax:

<div class="embed-responsive embed-responsive-16by9">
<iframe class= "embed-responsive-item" src=
"https://www.youtube.com/embed/VIDEO_ID" allowfullscreen>
</iframe>
</div>

Key Features:

Article Tags :