Surely you have already come across an article or website that had a Youtube video player embedded in its content. Inserting such a Youtube player into the content of your own site is not difficult at all and in a few steps, everyone can do it.
Get HTML code of video player – iframe
- First, we go directly to Youtube to the page with the video we want to embed.
- Then click on the Sharing link below the video
3. A window will open, where we will select the Insert option
4. Then we will see the HTML code that needs to be copied.
Embed HTML code in a web page
The HTML code that we copied can then be pasted into the content of the website, for example through its administration. Editors that are available in modern administrations usually already have the option to insert HTML code. In the case of the classic WordPress wysiwyg editor, all we have to do is switch to the HTML tab and then just paste the copied code to the place where we want to display the player.
Embed Youtube videos in Gutenberg editor in newer WordPress
If you use WordPress, where you have a modern version of the Gutenberg editor, which works on the principle of composing the content of the page from individual blocks, inserting a Youtube player is a breeze.
All we have to do is copy the Youtube video link, paste it directly into the content and the smart editor will automatically generate a video player. Alternatively, we can manually insert a new Youtube block and insert a link to the video here.