Display text in title formatting.

Each document should have a single st.title(), although this is not enforced.

Function signature

st.title(body, anchor=None)


body (str)

The text to display.

anchor (str)

The anchor name of the header that can be accessed with #anchor in the URL. If omitted, it generates an anchor using the body.


st.title('This is a title')

Was this page helpful?

editSuggest edits

Still have questions?

Our forums are full of helpful information and Streamlit experts.