how to add form action twig template form I have created a module in which I create a form and then rendered it in twig template I  want to know how to give form action in a twig template i.e  how to pass form action attribute in twig form.

any help will be greatly appreciated .

mymodulename-form.html.twig file

&lt;form&gt;
  &lt;div class="form-group"&gt;
   &lt;label for="name"&gt;{{form.first_name['#title']}}&lt;/label&gt;
    &lt;div class="input-group"&gt;
        {{form.first_name}}
        &lt;span class="input-group-addon danger"&gt;&lt;span class="glyphicon icon-remove"&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
I am assuming you are building this form with Form API and not plain HTML (don't do that). You need to add the attributes to ensure you get everything you need.

&lt;form{{ attributes }}&gt;


See the main form.html.twig template: https://api.drupal.org/api/drupal/core%21modules%21system%21templates%21form.html.twig/8.4.x

In general, I advise you to theme the form elements themselves instead of stitch the form together like this, because you will likely be missing the things in the form Drupal adds behind the scenes to a rendered form.