Title
Display text in title formatting.
python
st.title("The app title")
Header
Display text in header formatting.
python
st.header("This is a header")
Subheader
Display text in subheader formatting.
python
st.subheader("This is a subheader")
Caption
Display text in small font.
python
st.caption("This is written small caption text")
Code block
Display a code block with optional syntax highlighting.
python
st.code("a = 1234")
Preformatted text
Write fixed-width and preformatted text.
python
st.text("Hello world")
LaTeX
Display mathematical expressions formatted as LaTeX.
python
st.latex("\int a x^2 \,dx")
Data display elements
Dataframes
Display a dataframe as an interactive table.
python
st.dataframe(my_data_frame)
Static tables
Display a static table.
python
st.table(my_data_frame)
Metrics
