add checkbox and radio html example

This commit is contained in:
Dennis Eichhorn 2020-07-11 21:40:06 +02:00
parent 6d8e52d31d
commit f27feb766c

View File

@ -58,6 +58,29 @@ The following snippet creates a dictionary button (e.g. for opening a popup wind
</span>
```
### Checkbox
The following snippet creates a checkbox.
```html
<label class="checkbox" for="iID">
<input id="iID" type="checkbox" name="name" value="1">
<span class="checkmark"></span>
Text
</label>
```
### Radio
The following snippet creates a checkbox.
```html
<label class="checkbox" for="iID">
<input id="iID" type="radio" name="name" value="1">
<span class="checkmark"></span>
Text
</label
## Section
A section is a container for information that can and should be grouped together.