HTML type Attribute
HTML type Attribute
For input elements, the type attribute is used to specify the type of input element to display.
For button elements, the type attribute is used to specify the type of button.
For embed, script, style, link, source, and object elements, the type attribute is used to specify the media type.
Used With:-
Elements | Attribute |
---|---|
a | type |
button | type |
embed | type |
input | type |
link | type |
menu | type |
object | type |
script | type |
source | type |
style | type |
Syntax:-
Its syntax is:- < element type="value" >