From ce03b5ccdc56261e2219d542ae676cc30d45195e Mon Sep 17 00:00:00 2001 From: Tedo Haris Chandra Date: Sun, 10 Mar 2019 22:27:05 +0700 Subject: [PATCH] =?UTF-8?q?Help=20to=20add=20two=20kinds=20of=20Input=20Ty?= =?UTF-8?q?pe=20Attribute=20,=20There=20are=20date=20and=20fi=E2=80=A6=20(?= =?UTF-8?q?#29932)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Help to add two kinds of Input Type Attribute , There are date and file input type. * Capitalization --- .../attributes/input-type-attribute/index.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/guide/english/html/attributes/input-type-attribute/index.md b/guide/english/html/attributes/input-type-attribute/index.md index 2d939caede..8462b9adfc 100644 --- a/guide/english/html/attributes/input-type-attribute/index.md +++ b/guide/english/html/attributes/input-type-attribute/index.md @@ -41,6 +41,24 @@ Allow only numeric input. You can also specify the min and max value allowed. Th ``` +### date +Create input fields that let the user enter a date , either using a text box that automatically validates the content, or using a special date picker interface . +```html +
+ + +
+``` + +### file +Let the user choose one or more files from their device storage. Once chosen, the files can be uploaded to a server using form submission +```html +
+ + +
+``` + ### radio Only one option can be selected by the user. The group of radio buttons needs to have the same name attribute. You can select automatically one option by using `checked` property (in the example below the value Blue is selected). ```html @@ -50,6 +68,7 @@ Only one option can be selected by the user. The group of radio buttons needs to ``` + ### checkbox A user can select zero or more options from the group of checkboxes. You can use `checked` property here too for one or more options. ```html @@ -59,6 +78,7 @@ A user can select zero or more options from the group of checkboxes. You can use ``` + ### button The input is displayed as a button, the text which should be displayed in the button is in the value attribute. ```html @@ -66,6 +86,7 @@ The input is displayed as a button, the text which should be displayed in the bu ``` + ### submit Displays the submit button. The text which should be displayed in the button is in value attribute. After clicking on the button, the HTML does the validation and if it passes, the form is submitted.