> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Heading Element

The Heading element represents an Headings the Webflow Designer. Create a Heading element using the [Heading element preset](/designer/reference/element-presets).

## Methods

You can get and set the heading level of a heading element using the following methods:

#### [Get Heading Level](/designer/reference/heading-element/getHeadingLevel)

Retrieves the heading level of a heading element.

#### [Set Heading Level](/designer/reference/heading-element/setHeadingLevel)

Set the heading level of a heading element.

## Properties

| Property           | Description                                                                                       | Type      | Example                                                 |
| :----------------- | :------------------------------------------------------------------------------------------------ | :-------- | :------------------------------------------------------ |
| `id`               | Unique identifier for the element composed of two identifiers, the `component `and the `element`. | `object`  | `{component: "64c813...", element: "5edf8e59-71f9..."}` |
| `type`             | Specifies the type of the element.                                                                | 'string'  | 'Heading'                                               |
| `children`         | Indicates if the element can contain child elements.                                              | `boolean` | `true`                                                  |
| `customAttributes` | Indicates if the element can contain custom attributes.                                           | `boolean` | `true`                                                  |
| `styles`           | Indicates if the element can contain styles.                                                      | `boolean` | `true`                                                  |
| `textContent`      | Indicates if the element can contain text content                                                 | `boolean` | `true`                                                  |