diff --git a/docs/guide.rst b/docs/guide.rst index 70c29d8..75c2194 100644 --- a/docs/guide.rst +++ b/docs/guide.rst @@ -478,3 +478,25 @@ Korona supports ``open`` attribute for ```` tag. Korona can help you bui assert dialog_tag1 == 'abcd assert dialog_tag1 == dialog_tag2 +
+----- + +Korona supports ``align`` attribute for ``
`` tag. Korona can help you build ``
`` tag. + +.. code-block:: python + + from korona.html.construct import Div + + attributes = {'align': 'left', 'text': 'abcd'} + + # You can pass in the attributes in the form of a dictionary. + div1 = Div(**attributes) + # You can also pass in the attributes as args. + div2 = Div(align='left', text='abcd') + + div_tag1 = div1.construct() + div_tag2 = div2.construct() + + assert div_tag1 == '
abcd
+ assert div_tag1 == dialog_tag2 +