HI @Amarjeet and welcome to the Dash community
Thanks for sharing your solution!
To make the code display properly, you can use three backticks ( ``` ) on the lines before and after the code block.
```
app.layout = html.Div(children=[
html.H1(children='Hello Dash'),
html.Div(children='''
Dash: A web application framework for your data.
'''),
dcc.Graph(
id='example-graph',
figure=fig
)
])
```
You can find this tip and lots of other great info in this post: