What is DPI and image resolution?
Short answer
Resolution is the number of pixels in an image, like 1920x1080. DPI (dots per inch) describes how densely those pixels are printed on paper. On a screen, DPI is mostly irrelevant; what matters is the pixel dimensions.
Resolution: how many pixels
An image is a grid of pixels, and its resolution is that grid's size, such as 1920 by 1080. More pixels means more detail and a larger file. This is the number that actually determines how sharp an image looks on a screen.
DPI: how densely it prints
DPI, and the closely related PPI (pixels per inch), describe how those pixels are spread out when printed. At 300 DPI, 300 pixels fit in one printed inch. The same pixel image can print large and coarse at a low DPI or small and crisp at a high DPI.
1200 pixels at 300 DPI = 4 inches printed
1200 pixels at 150 DPI = 8 inches printed