There is no single image format that you can embed in a web page and that keeps the HDR effect on every capable display. There are many HDR file formats, but they are hard to convert to, and none of them works in every browser. So to show an HDR image on a website, you need to convert it into several formats and embed it so that each browser picks the file it can show.
Upload your HDR image to HDRJPG. HDRJPG converts it into a set of files that all keep the HDR: a gain map JPEG (JPEG-XT), a JPEG-XL, an HDR AVIF and two short, silent HDR MP4 videos. Download them and put them on your web server.
Then embed them with the HTML below. Each visitor's browser picks the file it can show in HDR, so your image looks like full HDR almost everywhere. On a screen without HDR, visitors see a normal photo.
Using WordPress? You don't need to do any of this by hand. The free HDRJPG WordPress plugin converts the HDR photos you upload to your media library and adds the embedding markup for you.