Svelte · Middle · Question 37 of 75

How do you call a named action from a form?

<form method="POST" action="?/login">...</form>

Explanation

A button can override it with formaction="?/register". A page can't have both a default and named actions.

Further reading

Problem with a question

Svelte · Middle · question 37

Test yourself

Take the Svelte · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz