diff --git a/html-input.md b/html-input.md index d372e96a8..e46986731 100644 --- a/html-input.md +++ b/html-input.md @@ -1,58 +1,112 @@ --- title: Input tag category: HTML +layout: 2017/sheet +updated: 2017-10-29 +weight: -3 --- - - autocompletetype='cc-exp' - autocapitalize='off' - pattern='\d*' +```html + autofocus +``` + +```html + autocomplete='off' + autocompletetype='cc-exp' + autocapitalize='off' + pattern='\d*' +``` ### Input types -Text: +#### Text - * email - * hidden - * month - * password - * tel - * text - * search - * week +* email +* hidden +* **password** +* tel +* **text** +* search +{: .-four-column} -Time: +#### Time - * date - * datetime - * datetime-local - * time +* date +* time +{: .-four-column} -Etc: +#### Time (not widely supported) - * file - * radio - * checkbox +* month +* week +* datetime +* datetime-local +{: .-four-column} -Buttons: +#### Etc - * button - * reset - * submit - * image +* **file** +* **radio** +* **checkbox** +{: .-four-column} -Numeric: +#### Buttons - * number - * range +* button +* reset +* submit +* image +{: .-four-column} -### Ref +#### Numeric - * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input +* number +* range +{: .-four-column} + +## Examples + +### Dates + +| Type | Example | +| --- | --- | +| `type='date'` | | +| `type='time'` | | + +# Datetime + +| Type | Example | +| --- | --- | +| `type='datetime'` | | +| `type='datetime-local'` | | + +`datetime` and `datetime-local` fields are not widely supported. + +### Numbers + +| Type | Example | +| --- | --- | +| `type='number'` | | +| `type='range'` | | + +### Text + +| Type | Example | +| --- | --- | +| `type='text'` | | +| `type='password'` | | +| `type='search'` | | +| `type='tel'` | | + +## Also see + + *