In the HTML world... the server sends data to you in the way of a HTML Document. Your browser parses that document and renders it as a web page on your screen.
Sounds good but how would you send data back to the server?
For that we have the HTML Form brought to us by the good folks at The Force... (The Internet Engineering Task Force or IETF).
In reality the Form tag is a container for form Elements... but it does specify two neccassary attributes that are needed to process the data...
There are a few other attributes you may want to use... like the target (where the results are going to be displayed). This is a list of the attributes for the form tag:
Attribute
Values
Description
accept-charset
charset
The character set the form should use (UTF-8)
action
URL
Where the form data goes when the submit button is clicked
autocomplete
on off
Should the browser complete fields based on past input
How the form data is going to be encoded when sent to the server
method
GET POST
How the data is going to be packed up when sent to the server. Get puts the data in the URL as parameters while POST encorporates the data in the transaction.
name
text
The name of the form. This is used by the fields or elements of the form
novalidate
none
Tells the browser not to validate any of the data. See the input elements
rel
external help license next nofollow noopener norefferer opener prev search
Events generally point at a script. onBlur='losingFocusScript(this)' But it can also support inline javascript... onBlur="document.getElementById('someElementId').value='FocusLost'.