Display text in title formatting.
Each document should have a single st.title(), although this is not enforced.
Function signature[source] | |
---|---|
st.title(body, anchor=None, *, help=None, width="stretch") | |
Parameters | |
body (str) | The text to display as GitHub-flavored Markdown. Syntax information can be found at: https://github.github.com/gfm. See the body parameter of st.markdown for additional, supported Markdown directives. |
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. |
help (str or None) | A tooltip that gets displayed next to the title. If this is None (default), no tooltip is displayed. The tooltip can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the body parameter of st.markdown. |
width ("stretch", "content", or int) | The width of the title element. This can be one of the following:
|
Examples
Still have questions?
Our forums are full of helpful information and Streamlit experts.