How to use YouTube Video in website

How to use YouTube Video in website

Use YouTube videos on the website is a handy feature. It is mainly used in event websites, cosmetics websites; nowadays, it is very trendy. Here in this blog, we will learn how to embed YouTube videos on the website. There are some following steps:

Step 1:  Open YouTube.

Step 2:  In the Search bar, type the video name, whatever you want to use.

Step 3:  Click on the Share icon button, there will pop up box appears:

In the pop-up box, click on the embed option.

Step 4: Click on the Copy button.

Step 5: Paste iframe code in your HTML page section wherever you want to show video.

Complete Code:

<!DOCTYPE html>
<html>
<head>
</head> <body> <iframe width="560" height="315" src="https://www.youtube.com/embed/VPS5gl_EIkI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</body> </html>


Here in this example, replace the iframe tag with your iframe code.

Categories: web designing html
Written By : Web Development Institute
Trending Courses

CodeIgniter

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Advance Digital Marketing Expert Course

Regular : 6 Months

Fastrack : 3 Months

Crash : 2 Months

React JS

Regular : 45 Days

Fastrack : 25 Days

Crash : 15 Days

Laravel

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Front End Developer

Regular : 6 Months

Fastrack : 4 Months

Crash : 2 Months

Web Expert with Python

Regular : 12 Months

Fastrack : 6 Months

Crash : 3 Months

Related Blogs

Request For Demo