how to align image in html
snippet in html

how to align image in html

user6132


  .center {
  display: block;
  
  margin-left: auto;
  margin-right: auto;
  
  width: 50%;
} 

how to align image in html

user8016


  <img src="paris.jpg" alt="Paris" class="center">