<iframe src="//www.youtube.com/embed/Ql8_GcE9-sg?rel=0" allowfullscreen="allowfullscreen" width="450" height="253" frameborder="0"></iframe>
ASKER
ASKER
WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.
TRUSTED BY
Here is the code I'm using, you can replace local urls by youtube url or vimeo url with their settings.
Always set a poster so if the device cannot display the video so the user will see at least an image.
Be aware that video may not be displayed in some phone browser or some feature may not work like automatic play.
Using 3 video format help for the browser compatibility .
Open in new window
CSS
Open in new window
Or if you are using Bootstrap or other CSS framework you can their media queries
to learn more about media queries: https://www.w3schools.com/css/css_rwd_mediaqueries.asp