i am trying to display an image on my html page, and noticed that if i want to add the image using CSS i had to use
.jumbotron {
  display: flex;
  align-items: center;
 background-image: url('https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/jumbotron.jpg');
  background-size: cover;
}
and for the same image on the html page i had to use :
<div class="row">
      <figure class="col-sm-6">
            <p>Kitchen</p>
            <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/jumbotron.jpg">
      </figure>
  </div>
so what is the difference here and why do each file loads the same image using a different property?
 
     
     
     
    