DPI only makes sense when printing. 72dpi is the Mac standard, and 96dpi is the Windows standard. Screen resolution takes into account only pixels, so 72dpi 800x600 jpeg is the same screen resolution as 96dpi 800x600 pixels.
Back to the 80s, the Mac used 72gpi screen resolution / print resolution according to the screen / print size, so when you had the image on the screen at 1: 1, it corresponds to the same size on the printer. Windows has increased the screen resolution to 96 dpi to improve the display of fonts. But, as a result, the image on the screen is no longer suitable for the printed size.
So, for a web project, don't worry about DPI if the image is not for printing; 72dpi, 96dpi, even 1200 dpi should be displayed the same way.
Gabriel mailhot
source share