Minor gremmar changes (#28827)

This commit is contained in:
Potato
2018-10-26 02:45:25 +02:00
committed by Aditya
parent 0afbe5bb47
commit 331cde2927

View File

@ -42,7 +42,7 @@ Allow only numeric input. You can also specify the min and max value allowed. Th
```
### radio
Only one option can be selected by the user. The group of radio buttons need to have the same name attribute. You can select automatically one option by using `checked` property (in example below the value Blue is selected).
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
<form>
<label><input type="radio" name="color" value="red">Red</label>
@ -51,7 +51,7 @@ Only one option can be selected by the user. The group of radio buttons need to
</form>
```
### checkbox
User can select zero or more options from the group of checkboxes. You can use `checked` property here too for one or more options.
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
<form>
<label><input type="checkbox" name="lang" value="english">english</label>
@ -60,14 +60,14 @@ User can select zero or more options from the group of checkboxes. You can use `
</form>
```
### button
The input is displayed as button, the text which should be displayed in the button is in value attribute.
The input is displayed as a button, the text which should be displayed in the button is in the value attribute.
```html
<form>
<input type="button" value="click here">
</form>
```
### 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 do the validation and if it passes, the form is submitted.
Displays the submit button. The text which should be displayed in the button is in the value attribute. After clicking on the button, the HTML do the validation and if it passes, the form is submitted.
```html
<form>
<input type="submit" value="SUBMIT">
@ -75,12 +75,12 @@ Displays the submit button. The text which should be displayed in the button is
```
### reset
Displays the reset button. The text which should be displayed in the button is in value attribute. After clicking on the button, all values from the form are deleted.
Displays the reset button. The text which should be displayed in the button is in the value attribute. After clicking on the button, all values from the form are deleted.
```html
<form>
<input type="reset" value="CANCEL">
</form>
```
There are more types elements. For more information visit [MSDN]("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input") or [w3schools]("https://www.w3schools.com/Html/html_form_input_types.asp").
There are more types of elements. For more information visit [MSDN]("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input") or [w3schools]("https://www.w3schools.com/Html/html_form_input_types.asp").