Hi guys, I was wondering whether it is alwasy true that a button needs to be inside a form tag? Is that necessary all the time?
The W3C say that The FORM element acts as a container for controls
so kind of yes really, but I 'd like to see if anybody has a different opinion. The thing is, I am working on a simple page at th moment which has 3 buttons, each of them doing a different thing: the first button validates something online; the second validates something offlice; the third cancels the action. So ideally each of them should be inside a separate form tag don't you think? To save me the hassle of having 3 form tags I was thinking not to have it at all, so just buttons inside a container, no form tag involved, but I am not sure that is a good idea