Display text in title formatting.
Each document should have a single st.title(), although this is not enforced.
st.title(body, anchor=None, *, help=None)
The text to display as Github-flavored Markdown. Syntax information can be found at: https://github.github.com/gfm.
This also supports:
anchor (str or False)
The anchor name of the header that can be accessed with #anchor in the URL. If omitted, it generates an anchor using the body. If False, the anchor is not shown in the UI.
An optional tooltip that gets displayed next to the title.
import streamlit as st st.title('This is a title') st.title('_Streamlit_ is :blue[cool] :sunglasses:')
Still have questions?
Our forums are full of helpful information and Streamlit experts.