Configure the main tag on a page

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Specify the main content of a page to include in the <main> tag to improve search engine optimization and accessibility.

    Avant de commencer

    Role required: sp_admin or admin

    Pourquoi et quand exécuter cette tâche

    The <main> tag is a semantic HTML element that contains the main content of the page. The <main> tag should be applied to content that is unique to the page and should be configured for only one element on the page.

    Procédure

    1. Navigate to All > Service Portal > Service Portal Configuration.
    2. Select Designer.
    3. Select a page.
    4. Switch to the portal you want to design pages for by selecting the portal name in the header.
      Service Portal Designer header with the portal name SP highlighted
    5. Select a container, row, or column on the page that contains the main content of the page.

      See the breadcrumbs in the header to confirm you have the correct element selected. You can’t add the <main> tag to a widget.

    6. Select the edit icon [Edit icon].
    7. In the Semantic tag field, select Main.
    8. Select Save.

    Résultats

    In the HTML of the page, the <main> tag contains the container, row, or column. In Service Portal Designer, a <main> tag displays in the bottom-right corner of the element.

    Main tag configured for a page in Service Portal Designer