1e41f4b71Sopenharmony_ci# Hyperlink 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **Hyperlink** component implements a link from a location in the component to another location. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> - This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. 8e41f4b71Sopenharmony_ci> - This component must be used with the system browser. 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci## Required Permissions 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ciIf Internet access is required, you need to apply for the **ohos.permission.INTERNET** permission. For details about how to apply for a permission, see [Declaring Permissions](../../../security/AccessToken/declare-permissions.md). 13e41f4b71Sopenharmony_ci 14e41f4b71Sopenharmony_ci## Child Components 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ciThis component can contain the [Image](ts-basic-components-image.md) child component. 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci## APIs 19e41f4b71Sopenharmony_ci 20e41f4b71Sopenharmony_ciHyperlink(address: string | Resource, content?: string | Resource) 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci**Parameters** 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci| Name| Type| Mandatory| Description| 29e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- | 30e41f4b71Sopenharmony_ci| address | string \| [Resource](ts-types.md#resource) | Yes| Web page to which the hyperlink is redirected.| 31e41f4b71Sopenharmony_ci| content | string \| [Resource](ts-types.md#resource) | No| Text displayed in the hyperlink.<br>**NOTE**<br>If this component has child components, the hyperlink text is not displayed.| 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ci## Attributes 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ciIn addition to the [universal attributes](ts-universal-attributes-size.md), the following attributes are supported. 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ci### color 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_cicolor(value: Color | number | string | Resource) 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciSets the color of the hyperlink text. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**System capability**: SystemCapability.ArkUI.ArkUI.Full 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ci**Parameters** 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci| Name| Type | Mandatory| Description | 50e41f4b71Sopenharmony_ci| ------ | ------------------------------------------------------------ | ---- | ------------------ | 51e41f4b71Sopenharmony_ci| value | [Color](ts-appendix-enums.md#color) \| number \| string \| [Resource](ts-types.md#resource) | Yes | Color of the hyperlink text<br>Default value: **'#ff007dff'**| 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci## Example 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ci```ts 56e41f4b71Sopenharmony_ci@Entry 57e41f4b71Sopenharmony_ci@Component 58e41f4b71Sopenharmony_cistruct HyperlinkExample { 59e41f4b71Sopenharmony_ci build() { 60e41f4b71Sopenharmony_ci Column() { 61e41f4b71Sopenharmony_ci Column() { 62e41f4b71Sopenharmony_ci Hyperlink('https://example.com/') { 63e41f4b71Sopenharmony_ci Image($r('app.media.bg')) 64e41f4b71Sopenharmony_ci .width(200) 65e41f4b71Sopenharmony_ci .height(100) 66e41f4b71Sopenharmony_ci } 67e41f4b71Sopenharmony_ci } 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci Column() { 70e41f4b71Sopenharmony_ci Hyperlink('https://example.com/', 'Go to the developer website') { 71e41f4b71Sopenharmony_ci } 72e41f4b71Sopenharmony_ci .color(Color.Blue) 73e41f4b71Sopenharmony_ci } 74e41f4b71Sopenharmony_ci }.width('100%').height('100%').justifyContent(FlexAlign.Center) 75e41f4b71Sopenharmony_ci } 76e41f4b71Sopenharmony_ci} 77e41f4b71Sopenharmony_ci``` 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci 80