Example

A simple <form> tag with two inputs:

Laboratory

description & Usage

The type attribute is used to specify the type of <input> (the type of information received from the user).

If we do not write the type attribute, the <input> will default to type="text" by default.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
type=""

Syntax