Text elements
Streamlit apps usually start with a call to st.title to set the
app's title. After that, there are 2 heading levels you can use:
st.header and st.subheader.
Pure text is entered with st.text, and Markdown with
st.markdown.
We also offer a "swiss-army knife" command called st.write, which accepts
multiple arguments, and multiple data types. And as described above, you can
also use magic commands in place of st.write.
Headings and body text

Markdown
Display string formatted as Markdown.

Title
Display text in title formatting.

Header
Display text in header formatting.

Subheader
Display text in subheader formatting.
Formatted text

Badge
Display a small, colored badge.

Caption
Display text in small font.

Code block
Display a code block with optional syntax highlighting.

Echo
Display some code on the app, then execute it. Useful for tutorials.

Preformatted text
Write fixed-width and preformatted text.

LaTeX
Display mathematical expressions formatted as LaTeX.

Divider
Display a horizontal rule.
Utilities
Get help
Display object’s doc string, nicely formatted.
Render HTML
Renders HTML strings to your app.
Third-party components
These are featured components created by our lovely community. For more examples and inspiration, check out our Components Gallery and Streamlit Extras!
Still have questions?
Our forums are full of helpful information and Streamlit experts.





