import streamlit as st # Write raw HTML st.markdown('

This is a red header!

', unsafe_allow_html=True) # Embedding an image with HTML st.markdown('Your image', unsafe_allow_html=True) st.button('say hello') # Insert custom HTML block html_content = """

Custom HTML Block

This is a block with custom HTML

""" st.markdown(html_content, unsafe_allow_html=True)