All HTML and XHTML pages should use the element to define which HTML version to follow. The doctype defines the HTML version you are using and gives the browser important information to render your page more quickly and consistently.
In this tutorial you will learn about image loading effect using jQuery. Using JQuery, Initially load all the images in a variable and bind into an html element using ID. Here I referred jquery-3.2.1.slim.min.js and CSS.