A possibly stupid question

I’m working on creating some web forms. I understand the HTML tags, what I’m not sure about is where to call the executable action. Is this something that has to be done by the hosting server, or is it more like Java where you just put out the call and it simply runs? The examples I’ve seen tend to suggest the latter, but I need to understand this better before I can move on.