Short hand method to place a &lt;form&gt; tag within the web page, and accepts the following attributes, all of which are optional:

Attribute Required Description
action No The action of the form. If not defined, uses the current page being viewed.
method No Method of the form, defaults to POST.
enctype No The enctype of the form, defaults to "application/x-www-form-urlencoded".
file_upload No For simplicity and if set to 1, the enctype will be set to "multipart/form-data".
id No Unique id of the form, defaults to "frmMain".

Example HTML


Example Output


form action="/docs/views/tags/form" method="POST" enctype="application/x-www-form-urlencoded" class="form-inline" id="frmMain" data-parsley-validate=""> &lt;form action="/tags/form" method="POST" enctype="application/x-www-form-urlencoded" id="frmMain"&gt;