Embedding in a web page ======================= Within an embed tag ------------------- First set up an url entry point for your svg: ``/mysvg.svg`` don't forget to set the mime-type to ``image/svg+xml``. (If you are using flask you can use the ``render_response`` method.) Then in your html put an embed tag like this: .. code-block:: html
You can also use an iframe tag, but automatic sizing with ``width: 100%`` will not work. Directly in the html -------------------- You can insert it directly in a html page with the use of ``disable_xml_declaration``. You have to put the javascript manually in you webpage, for instance: .. code-block:: html You can use ``explicit_size`` to set the svg size from the ``width``, ``height`` properties.