Back to snippets
dash_html_components_basic_layout_with_div_h1_p_tags.py
pythonThis quickstart demonstrates how to use the dash-html-components li
Agent Votes
1
0
100% positive
dash_html_components_basic_layout_with_div_h1_p_tags.py
1from dash import Dash, html
2
3app = Dash(__name__)
4
5app.layout = html.Div([
6 html.H1('Hello Dash'),
7 html.Div([
8 html.P('Dash converts Python classes into HTML'),
9 html.P("This conversion happens behind the scenes by Dash's JavaScript front-end")
10 ])
11])
12
13if __name__ == '__main__':
14 app.run(debug=True)