Forms
Forms are great for getting information from the user. They usually have multiple elements inside them that accept input from the user. The data acquired from the input of the user is then sent to the server to process.
Form
The syntax of the
form
element is as follows:
<form accept-charset action autocomplete enctype method name novalidate target></form>
Attributes
The attributes that are used in the form
element are as follows:
accept-charset
: This is a list of character encodings that the server accepts. This can be a space- or comma-delimited list.action
: This is the URL that will process the form.autocomplete
: This lets the browser know whether it can autocomplete this form with previous values.enctype
: This sets the MIME type for the content ...
Get Web Developer's Reference Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.