JSFiddle - React, Tailwind, and code Playground

HTML

<div id="gallery">
</div>

CSS

'video/mp4

JavaScript

$( document ).ready(function() {
var photo = $('<img />', {
              id: 'photo',
              src: 'http://lorempixel.com/400/200/city/',
              alt: ''
              });
photo.appendTo($('#gallery'));

var video = document.createElement('video');
    alert( video.toSource() ); //For testing
    video.id = 'video';
    video.source.src = 'http://video-js.zencoder.com/oceans-clip.mp4';
    video.type = 'video/mp4';
    video.control = true;
video.appendTo($('#gallery'));
});