Display text in subheader formatting.
Function signature

st.subheader(body, anchor=None)

Parameters

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.

Example

st.subheader('This is a subheader')

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.