In default Magento 2 (here and after it is considered on the basis of Luma theme) HTML5 standard is applied. <!DOCTYPE html> tag is indicative of standard version (“html” value defines that HTML5 is used, but HTML4 is backward compatible). In Magento 2 the following features that have been appeared in HTML5 are used.
In order to add a video content to a product in Magento 1.x, you needed to create a separate module or an attribute. In Magento 2 it is much easier. This functionality has been added to a default functions set.
Let’s take a look into how to add a video from YouTube service.
At first place you should generate API in order to use YouTube functions. Open your YouTube account following this link.
Let’s create a new project.
Enter the API section.
Select API Youtube and activate it.
Generate a key.
After that, open Magento admin panel and save the key.
Now you can add YouTube video content for your products. Enter product page in the admin panel and select Images and Videos.
And enter the link to the video content that you would like to add.