Streamlit
satya - 2/14/2024, 6:19:35 PM
How do I write html to screen?
import streamlit as st
# Define your HTML content with heading 1 and paragraph elements
html_content = """
<h1>This is a Heading 1</h1>
<p>This is a paragraph.</p>
<h1>Another Heading 1</h1>
<p>Another paragraph.</p>
"""
# Display the HTML content in Streamlit
st.markdown(html_content, unsafe_allow_html=True)