Use an anchor to submit a form. Useful for actions like a logout where the logout button should match the style of a navigation link.
<a href="" onclick="event.preventDefault();document.getElementById('form-id').submit();">Submit</a>
<form id="form-id" class="d-none" action="https://example.com" method="post"></form>