html center youtube video
snippet in html

html center video

user8070

video {
    margin-left: auto;
    margin-right: auto;
    display: block
}

html center youtube video

user3785

<!-- Add the <center> to the start and end of the iframe :D -->
<center><iframe width="560" height="315" 
src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" 
allow="accelerometer; autoplay; clipboard-write; encrypted-media; 
gyroscope; picture-in-picture" allowfullscreen></iframe></iframe></center>