A graphic can look sharp inside Photoshop but become blurry after being resized for a website. Begin with the intended pixel dimensions and keep a layered PSD master. Inspect text and edges at actual output size instead of judging only a zoomed-in canvas.
Choose PNG for graphics requiring transparency or crisp flat-color elements, and JPEG when an opaque photographic image is more appropriate. Use a suitable color space for the intended platform and compare the exported file against the master. Keep the original artwork separate so future resizing does not depend on an already compressed image.
For related software information, my website ABDNOVA covers
Adobe Photoshop for Windows image editing.