how to center an embed in html code example
Example 1: html center video
video {
margin-left: auto;
margin-right: auto;
display: block
}
Example 2: html center youtube video
<!-- 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>