···172172>>> print(div(attr='a value with "quotes" and a <tag>'))
173173<div attr="a value with "quotes" and a <tag>"></div>
174174175175+Boolean attributes
176176+^^^^^^^^^^^^^^^^^^
177177+178178+A boolean HTML attribute is one that does not have a value. For example, to
179179+mark an input field as required, you can write ``<input required>``. There is
180180+also an alternative syntax, which minihtml uses: ``<input
181181+required="required">``.
182182+183183+To set a boolean attribute, pass ``True`` as the value. ``False`` is also a
184184+valid value, and causes the attribute to be omitted (this can be useful if you
185185+set the attribute from a variable):
186186+187187+>>> from minihtml.tags import input
188188+>>> print(input(required=True, disabled=False))
189189+<input required="required">
190190+175191.. _content:
176192177193Content