Layouts do not always match the markup. The save button lives in a toolbar at the top, while the form is in the main column. With the form attribute the button can belong to a form it is not inside.
<header class="toolbar">
<button type="submit" form="settings">Save</button>
</header>
<main>
<form id="settings" method="post" action="/settings">
<input name="display_name">
</form>
<input type="checkbox" name="newsletter" form="settings">
</main>
The value of form is the id of the form element. The button submits that form as if it were inside it, with validation and all. It works on inputs too: the checkbox above is outside the form in the markup but is submitted with it. Buttons, inputs, selects, textareas, fieldsets and outputs all accept it.
I find it handy in tables where every row has its own edit form, since a form element cannot wrap a table row. Put the forms outside the table and point each row’s fields at them.
It has worked in every browser for years. What to watch: the attribute takes an id, not a name, and the id must be unique, or the browser links the control to the wrong form. Also, the attribute overrides a surrounding form, so a field inside form A with form="b" belongs to form B.
Further reading: MDN: input form attribute, MDN: The button element