Uploading images directly to html site [closed]

I’m trying to develop a gallery site where I can display images I upload. I was able to make a site with the gallery but could not come across a way to create a way to upload images from my local directory, and save the img as a in html.
are there any recommended ways/library to do so? how would I be able to do this without using backend.