How to link a button to a webpage?

Simply use this -

link = '[GitHub](http://github.com)'
st.markdown(link, unsafe_allow_html=True)

This will open the link when clicked on it.

11 Likes