Function signature[source] | |
---|---|
st.subheader(body, anchor=None, *, help=None) | |
Parameters | |
body (str) | 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. |
help (str) | An optional tooltip that gets displayed next to the subheader. |
Examples
import streamlit as st st.subheader('This is a subheader') st.subheader('A subheader with _italics_ :blue[colors] and emojis :sunglasses:')
