FORM BASICS
Web forms are represented by the <form> element in HTML and by the HTMLFormElement type in JavaScript. The HTMLFormElement type inherits from HTMLElement and therefore has all of the same default properties as other HTML elements. However, HTMLFormElement also has the following additional properties and methods:
acceptCharset—The character sets that the server can process; equivalent to the HTMLaccept-charsetattribute.-
action—The URL to send the request to; equivalent to the HTMLactionattribute. elements—AnHTMLCollectionof all controls in the form.enctype—The encoding type of the request; equivalent to the HTMLenctypeattribute.length—The number of controls in the form.method—The type of HTTP request to send, typically"get"or"post"; equivalent to the HTMLmethodattribute.name—The name of the form; equivalent to the HTMLnameattribute.reset()—Resets all form fields to their default...