What is the difference between HTML and ?
can be used anywhere, not just within form and they do not submit form if they are in one. Much better suited with Javascript.
Javascript
should be used in forms only and they will send a request (either GET or POST) to specified URL. They should not be put in any HTML place.