description & Usage
<form> tags are used to create [HTML forms]
<form> tags allow us to use the following elements:
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<form> |
Attributes
Attributes | Values | Description |
---|---|---|
accept-charset |
character-set
|
Specifies the types of files that the server accepts. only for ( type="file" ). |
action |
on-off
|
Specifies the place to receive information inside the <form>. |
enctype |
application/x-www-form-urlencoded multipart/form-data text/plain
|
It determines the coding method of the information inside the tag related to the server (only used for sending "posts"). |
method |
get - post
|
Determines the http mode when sending <form> data. |
name |
text
|
Specifies the name of the tag. |
novalidate |
novalidate
|
Specifies that the <form> should not be validated when submitted to the server. |
rel |
external-help-license-next-nofollow-noopener-opener-prev-search
|
Specifies the type of relationship between the current document and the linked document. |
Global Attributes
The <form> tag supports the HTML Global Attributes.
Event Attributes
The <form> tag supports the HTML Event Attributes.
Default CSS
Most browsers will display the <form> tag with the following default style: