If you are not printing the image and just posting on the web then your file size is significantly smaller if you export it to jpg at 72dpi. The files are huge if you use 300dpi and what you actually see on the web e.g this forum is still exactly the same in fact they could be less sharp as they will be reduced in size by the web site sw. As WayneF said the 300 dpi is only used for printing.
Not necessarily, but it may be more confusing to comment.
There are so many ifs and buts about dpi.
If we were creating images by scanning, then yes, 300 dpi creates a greatly larger image than 72 dpi. If scanning 10 inches of paper, 300 dpi creates 3000 pixels, and scanning at 72 dpi creates 720 pixels. Dpi is extremely important to scanning, but that is about scanning.
Digital cameras create images a different way, and digital camera users can generally say dpi has no meaning whatsoever to them, but there is the local printing issue (on our own printer) that is an exception. The digital camera does not use dpi at all. It simply creates a 12 or 24 or whatever megapixel image, which is only dimensioned in pixels. Dpi is of absolutely no concern to the camera, it has no clue what size we might print it someday. The camera simply marks it with some very arbitrary dpi number, which has absolutely no significance. Also Adobe Raw marks it with an arbitrary dpi number, one which we can arbitrarily specify. It is just a feel good number, so we see it predicts to print smaller than a few feet size (which it would say if we let Adobe run with their made up 72 dpi number when it is blank). But Save For Web discards any dpi number, regardless of what it was (because video systems have no use for the number).
When printing it (for example, an internet printing service), we specify that we want it to be say 8x10 inches, in which case dpi is of no concern, and is not used. Regardless of the dpi number, they simply print it to be 8x10 inches. The process will compute some new dpi number so the print dimensions come out 8x10 inches, from the pixel dimensions that we have. The number of pixels (dimensions) is the valid concern. We do want that number to come out around 300 dpi ballpark, denoting good quality.
Or, if on our own printer, if we just say Print, this is the only time the dpi field will be used. It will determine the print size that way (sized to be so many pixels per inch). Or instead (if we say MORE than Print), our printer dialog may offer the opportunity to instead specify 8x10 inches, instead of using dpi. It should tell us the resulting dpi number in that case. We are concerned that we are printing up around 300 dpi, but this is the only use for the number. It denotes print size. 3000 pixels printed at 300 dpi will cover 10 inches of paper.
For a video monitor image (including web pages), dpi has no meaning whatsoever (no video system uses dpi, screens are dimensioned in pixels, and images are dimensioned in pixels). And any Save For Web output will discard dpi information. Dpi will be blank (and Adobe will tell us it says 72 dpi, but Window Paint and others will tell us it says 96 dpi. But it is still blank, if Save For Web.) Dpi has no use on the video monitor screen. We simply could not care less what dpi says on a video monitor.
The uptight guys will want to comment on calling it ppi, but it is the same thing.
If we RESAMPLE an image that says 300 dpi to instead be 72 dpi, it does get much smaller (image pixel dimensions).
If we SCALE it (simply change the dpi number without resampling), it has zero effect on the video monitor image. Still the same size in pixels. But it might print a different size then (depending on how you printed it).
The Adobe Resize box has a checkbox to turn off resample (to be scaling), or to resample it.
We do all seriously need to understand this part.
For digital camera images, forget about dpi, with the one exception of when dpi determines print size, instead of just saying to print it to be 8x10 inches.