shiny.ui.panel_title(title, window_title=<shiny.types.MISSING_TYPE object>)#

Create title(s) for the application.

  • title (Union[str, Tag, TagList]) – A title to display in the app’s UI.

  • window_title (Union[str, MISSING_TYPE]) – A title to display on the browser tab.

Return type

A UI element


This result of this function causes a side effect of adding a title tag to the head of the document (this is necessary for the browser to display the title in the browser window). You can also specify a page title explicitly using the title parameter of the top-level page function (e.g., page_fluid()).


#| standalone: true
#| components: [editor, viewer]
#| layout: vertical
#| viewerHeight: 400
from shiny import *

app_ui = ui.page_fluid(ui.panel_title("Page title", "Window title"))

def server(input: Inputs, output: Outputs, session: Session):

app = App(app_ui, server)