# richtext The **\** component displays rich text information. > ![img](https://gitee.com/openharmony/docs/raw/OpenHarmony-3.1-Release/en/application-dev/public_sys-resources/icon-note.gif) **NOTE:** > > - The rich text content must be written in the content area. ## Required Permissions None ## Attributes Only the **id**, **style**, and **class** attributes in [Universal Attributes](js-components-common-attributes.md) are supported. ## Styles Only the **display** and** visibility** styles in [Universal Styles](js-components-common-styles.md) are supported. ## Events In addition to the events in [Universal Events](js-components-common-events.md), the following events are supported. | Name | Parameter | Description | | -------- | --------- | --------------------------------------- | | start | - | Triggered when the loading starts. | | complete | - | Triggered when the loading is complete. | > ![img](https://gitee.com/openharmony/docs/raw/OpenHarmony-3.1-Release/en/application-dev/public_sys-resources/icon-note.gif) **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 Code ```
{{content}}
// 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()) } } ```