<button> Tag Attributes

Attributes of the <button> tag
global attributes In addition to the personal attributes of the <button> tag below, any of the common HTML attributes can also be coded.
autofocus="autofocus" Sets the value of the <button autofocus> boolean attribute to true. Omitting it sets to false.
disabled="disabled" Sets the value of the <button disabled> boolean attribute to true. Omitting it sets to false.
form
formaction

a URI reference (or IRI reference depending on the encoding) for the destination that is to process the submitted data

Use percent escape codes as explained in the URL Encoding Tutorial for any special characters in the URI reference.

If the value of the formaction attribute resolves to an HTTP URI, it may contain any of the following components:

  1. protocol scheme, typically http: or else https:
  2. username, followed by an "@"
  3. host name or IP address
  4. port number, which defaults to 80 for the http scheme and 443 for the https scheme
  5. absolute or relative path
  6. search query, indicated by "?"
  7. fragment identifier, indicated by "#" if the response from the form submission has placemarks

If the protocol scheme, username, host name/IP address and port number are omitted the default is the current host - the same server as the base of the current document. If the path starts with a slash /..., it is an absolute path from the document root directory (AKA "web root") on the server. A relative path will be resolved relative to the base of the current document. A URI with a "#" but no fragment identifier points to the top of the response document.

formenctype
formmethod
formnovalidate
formtarget
name
type="submit"
type="button"
type="reset"
value