May be a dumb question, but I couldn’t find the answer on google.

I’m making a website on which you can upload photo or video, and I’m using Html, CSS and JavaScript.

On homepage user can click on photo which should take him to /photo/upload, and on video which should take him to /video/upload.

My question is how can I change location path when something is clicked, and redirect user to that page?

And another question, should I make multiple html files in order to do that, or is it possible to just change content of one html file based on url?

Anonymous Asked question May 13, 2021