HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <input> types

The <input> element is used to collects information entered into a form. This element can be used in several ways, depending on the type attribute.


<input type="value">
Run code

Attribute Values

HTML5 is new in HTML5

Value Description
button Defines a simple push button (mostly used with JavaScript)
checkbox Defines a checkbox
color Defines a color picker
date Defines a date control (year, month, day)
datetime-local Defines a date and time control (year, month, day, time)
email Defines a field for an e-mail address
file Defines a file select field and a "Browse" button (for file uploads)
hidden Defines a hidden input field
image Defines an image as the submit button
month Defines a month and year control
number Defines a field for entering a number
password Defines a password field
radio Defines a radio button
range Defines a range (slider) control
reset Defines a reset button (resets the form-data to its initial values)
search Defines a text field for entering a search string
submit Defines a submit button (submits form)
tel Defines a field for entering a telephone number
text Defines a single-line text field (This is Default)
time Defines a control for entering a time
url Defines a field for entering a URL
week Defines a week and year control

Last updated: Friday 24 Aug, 2018