IssueRaiser

Add the "action" and "method" attributes to <button>

### What is the issue with the HTML Standard? ## Description Currently, the `<button>` element supports the `formaction` and `formmethod` attributes, which let it change the `action` and `method`, respectively, of its parent `<form>`. Buttons should also support the `action` and `method` attributes, which would allow the button to make HTTP requests without being wrapped in a form. This is the second of the [Triptych Proposals](https://triptychproject.org/), three (relatively) modest additions to HTML that would make it much more expressive. The first of these three is [PUT, PATCH, and DELETE support](https://github.com/whatwg/html/issues/3577#issuecomment-2294931398). While button actions benefit greatly from the first proposal, it is not required to make this one worthwhile; even with limited method support, button actions can dramatically simplify web authorship. Details, FAQs, and alternatives can be found in the [full proposal](https://triptychproject.org/proposals/button-actions), with some evidence of its utility excerpted below. A formal pull request will follow on shortly—we'd love to gauge implementer interest in the meantime. ## Examples Supporting button actions makes common web patterns simpler, more secure, and more convenient for web authors, while also enabling more complex patterns that were previously impossible or prohibitively complex in HTML. ### Authentication One of the most common actions on the web, "logging out," cannot be properly modeled

Posted by alexpetros on Apr 3, 2026, 4:38 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

support (Software)

Add the "action" and "method" attributes to <button>

alexpetrosApr 3, 2026, 4:38 PM

### What is the issue with the HTML Standard? ## Description Currently, the `<button>` element supports the `formaction` and `formmethod` attributes, which let it change the `action` and `method`, respectively, of its parent `<form>`. Buttons should also support the `action` and `method` attributes, which would allow the button to make HTTP requests without being wrapped in a form. This is the second of the [Triptych Proposals](https://triptychproject.org/), three (relatively) modest additions to HTML that would make it much more expressive. The first of these three is [PUT, PATCH, and DELETE support](https://github.com/whatwg/html/issues/3577#issuecomment-2294931398). While button actions benefit greatly from the first proposal, it is not required to make this one worthwhile; even with limited method support, button actions can dramatically simplify web authorship. Details, FAQs, and alternatives can be found in the [full proposal](https://triptychproject.org/proposals/button-actions), with some evidence of its utility excerpted below. A formal pull request will follow on shortly—we'd love to gauge implementer interest in the meantime. ## Examples Supporting button actions makes common web patterns simpler, more secure, and more convenient for web authors, while also enabling more complex patterns that were previously impossible or prohibitively complex in HTML. ### Authentication One of the most common actions on the web, "logging out," cannot be properly modeled

Comments (0)

No comments yet. Start the discussion.

Comment on this issue