How to run a bash shell script from a html button click?

If I have a simple bash script

#! / bin / bash
tap ./test.txt

that I want to be activated at the push of a button on a simple html page, how to proceed?

html looking for something like this (but I know it's wrong)

Thank you for any help!