Saltar la navegación

Atributos de FORM

La etiqueta tiene varios atributos que es necesario conocer. Algunos de estos son:

  • method .Indica la forma en la información del formulario será enviada al servidor. Generalmente, sus valores pueden ser GET o POST.
  • action .Indica el fichero(Ej. PHP, JSP) que procesará los datos enviados al servidor 

Los otros atributos, no menos importantes, las puedes ver en la siguiente página de W3C School.

W3C School - Atributos de FORM

Attributes

Attribute Value Description
accept-charset character_set Specifies the character encodings that are to be used for the form submission
action URL Specifies where to send the form-data when a form is submitted
autocomplete on
off
Specifies whether a form should have autocomplete on or off
enctype application/x-www-form-urlencoded
multipart/form-data
text/plain
Specifies how the form-data should be encoded when submitting it to the server (only for method="post")
method get
post
Specifies the HTTP method to use when sending form-data
name text Specifies the name of a form
novalidate novalidate Specifies that the form should not be validated when submitted
rel external
help
license
next
nofollow
noopener
noreferrer
opener
prev
search
Specifies the relationship between a linked resource and the current document
target _blank
_self
_parent
_top
Specifies where to display the response that is received after submitting the form

Fuente: view-source:https://www.w3schools.com/tags/tag_form.asp