title: Retrieve data from JSON file and display images in a gallery
body: <p>I'm new to JQuery and any help would be much appreciated. </p>
  
  <p>"Using $.getJSON function, retrieve the data in the items.json file provided and display the images in a gallery below. The gallery should display each image at roughly thumbnail size with its caption below it in a 3-column grid at desktop resolution."</p>
  
  <p>I was able to get the the .json to output on the HTML page, now I was wondering how to get the actual images to show on the HTML page instead of the URL path of the images? This is what outputs to the HTML page currently:</p>
  
  <ul>
  <li>URL: images/image_1.jpg </li>
  <li><p>caption: Image 1 Caption</p></li>
  <li><p>URL: images/image_2.jpg</p></li>
  <li><p>caption: Image 2 Caption</p></li>
  <li><p>URL: images/image_3.jpg</p></li>
  <li><p>caption: Image 3 Caption</p></li>
  <li><p>URL: images/image_4.jpg</p></li>
  <li>caption: Image 4 Caption</li>
  </ul>
  
  <p><strong><em>items.json</em></strong></p>
  
  <pre><code>{
  "items": [
      {
          "url": "images/image_1.jpg",
          "caption": "Image 1 Caption"
      },
      {
          "url": "images/image_2.jpg.jpg",
          "caption": "Image 2 Caption"
      },
      {
          "url": "images/image_3.jpg.jpg",
          "caption": "Image 3 Caption"
      },
      {
          "url": "images/image_4.jpg.jpg",
          "caption": "Image 4 Caption"
      }
  ]
  </code></pre>
  
  <p>}</p>
  
  <p><strong><em>scripts.js</em></strong></p>
  
  <pre><code>  $(document).ready( function(){
      $.getJSON('images.json', function(data) {
          $.each(data.items, function(i,f) {
              $("ul").append("&lt;li&gt;URL: "+f.url+"&lt;/li&gt;&lt;li&gt;Caption: "+f.caption+"&lt;/li&gt;&lt;br /&gt;");
  
          });
      });
  });
  </code></pre>