# richtext > **NOTE** > > - This component is supported since API version 6. Updates will be marked with a superscript to indicate their earliest API version. > > - The rich text content must be written in the content area. The **\** component displays rich text information. ## Required Permissions None ## Attributes Only the **id**, **style**, and **class** attributes in [Universal Attributes](../arkui-js/js-components-common-attributes.md) are supported. ## Styles Only the **display** and **visibility** styles in [Universal Styles](../arkui-js/js-components-common-styles.md) are supported. ## Events In addition to the [universal events](../arkui-js/js-components-common-events.md), the following events are supported. | Name| Parameter| Description| | -------- | -------- | -------- | | start | - | Triggered when loading starts.| | complete | - | Triggered when the loading starts.| > **NOTE** > - The **focus**, **blur**, and **key** events are not supported. > > - Accessibility events are not supported. > > - When a page containing **\** is returned, the page's transition effect does not apply to the area where the rich text is displayed. > > - Make sure the rich text does not go beyond the height of the screen. Otherwise, the excess content will not be displayed. > > - The width cannot be set. By default, the rich text is displayed in full screen. ## Methods Not supported ## Example ```html
{{content}}
``` ```js // xxx.js export default { data: { content: `

h1

Text test (h1 test)

h2

Text test (h2 test)

`, }, onLoadStart() { console.error("start load rich text:" + JSON.stringify()) }, onLoadEnd() { console.error("end load rich text:" + JSON.stringify()) } } ```