html image center

HTML
  <img src="paris.jpg" alt="Paris" class="center"> .center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}.centerImg {
  display: block;
  margin: 0 auto;
}<div style="text-align: center;">
  <img scr='img/example.jpg'>
</div>
Source

Also in HTML: