Create a web page with button to switch between presets

Hello, I just want to create a web page with 4-5 buttons to change presets. I don’t understand how to put json api on html code.
If someone could give me a simple example to start it will be great !
on a second time, I want to know if I could create 3 differents type of buttons (on-off, toggle and momentary) ?
Thanks a lot !