Skip to content
Related Articles

Related Articles

Improve Article
HTML | type Attribute
  • Last Updated : 28 Jun, 2019

The HTML type Attribute is used to specify the type of button for <button> elements. It is also used in <input> element to specify the type of input to display. For embed elements like link, object, script, source, and style used to specify the Internet Media Type.


<element type="value"> 

Below example illustrates the use of type attribute in HTML:


<!DOCTYPE html> 
            HTML type Attribute 
        <h3>HTML type Attribute</h3
        <form action="#" method="get"
            Username: <input type="text" name="uname"
            Password: <input type="password" name="pwd"
            <button type="submit" value="submit"
            <button type="reset" value="reset"


Supported Browsers: The browser supported by HTML type attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :