How to use WebserverDAT to make simple HTML UI buttons

I want to make a simple web page using Webserver DAT that has two buttons, one for ON and one for OFF. I have made the basic index.html page in a Text.DAT and made two buttons. What I don’t know is how to format the buttons to be able to send button state back to the web server and change a parameter value in TD.

You could do it using WebSockets by sending any relevant data through the WebSocket connection to the server on button change. The WebServer DAT Snippet “server socket update” does something like this with its Update Frequency radio buttion. That might be a helpful starting point for what you want to achieve.