Display The Image On The Page

We're making our request to Unsplash, it's returning a response that we're then converting to JSON, and now we're seeing the actual JSON data. Fantastic! All we need to do now is display the image and caption on the page.

Here's the code that I'm using:


This code will be working following way
  • get the first image that's returned from Unsplash
  • create a <figure> tag with the small image
  • creates a <figcaption> that displays the text that was searched for along with the first name of the person that took the image
  • if no images were returned, it displays an error message to the us

#HappyCoding

3 comments:

  1. Appreciated perusing the article above , truly clarifies everything in detail,the article is extremely fascinating and effective.Thank you and good fortunes for the up and coming article.Feel free to surf custom essay writing service for different writing ideas.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Computers can statistically decide the play with the most important anticipated return. Skill and instinct at half in} video poker aren’t sufficient, as you’re alleged to do what’s statistically greatest a daily basis}. But should you miss those, attempt for a straight flush or a royal flush. However, if you’ve got a 1xbet single deuce, the video poker technique turns into slightly powerful however manageable.

    ReplyDelete