title in Streamlit

In Streamlit, a title is used to display the main heading of your app. It is usually the first thing users see and sets the context for the entire application.

Syntax

st.title(body)    

Example:

Python

import streamlit as st

st.title("App Title")   # Big heading or main title 

Run the Streamlit App

Use the following command to run the Streamlit application:

Bash

streamlit run app.py  

Here, app.py is the file name containing the Streamlit code.

The output of the above code is shown in the image below:

Title in Streamlit