In this example the state (whether the menu is collapsed or not) will carry over between device sizes, which will be relevant if you expect that your users resize the website.
Device Dependent State
Sometimes it might be preferrable to maintain a separate device dependent
state. To achieve this we can leverage the classes
The initial state can be manipulated by specifying the
checked attribute for
an input element.