Input fields with placeholders that become labels when you click
inside.
Scratched this together from a couple of sources.
My
notes on how the magic happens.
Link to
Codepen
Very simple but effective method: minor styling (no hiding) of default
checkbox. On being checked it receives an inset box-shadow.
Props and thanks to
Prethi at CSS-Tricks.
Link to
Codepen
Plain HTML, no CSS involved. Just the <fieldset> and <legend> element combo.
Allows for grouping options of the select field.
Styling of checkboxes and the like used to be a hassle. Coloring at
least recently became very easy and light-weight with
accent-color.