---
title: "HTML"
slug: "html"
abstract: "How to insert a component that renders custom HTML on the page."
---
# HTML

The **HTML** component inserts custom HTML code into a page. You can use the rich text editor to write content that you want to be converted automatically to HTML or you can write the HTML source code directly in the editor.

To add an **HTML** component:

1. On the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Pages**.
3. On the **Pages** page, select the page you want to modify.
4. On the **Layout** tab, [add the page component](https://doc.sitecore.com/ch/en/users/content-hub/add,-modify,-or-delete-page-components.md "Add, modify, or delete page components").
5. Click the component to open its details page. The [rich text editor](https://doc.sitecore.com/ch/en/users/content-hub/using-the-text-editor.html "Using the text editor") initially displays component content using rich text mode.
6. Click **Source** :mdiCodeTags: to change input methods as desired, and then enter your content using the corresponding format:
    - **Rich text** - add content and format it using the toolbar options.
    - **HTML** - enter valid HTML into the source code editor.
7. Click **Save and close**.