---
title: NSLinkAttributeName
framework: uikit
role: symbol
role_heading: Global Variable
path: uikit/nslinkattributename
---

# NSLinkAttributeName

The link for the text.

## Declaration

```occ
extern NSAttributedStringKey const NSLinkAttributeName;
```

## Overview

Overview The value of this attribute is an NSURL object (preferred) or an NSString object. The default value of this property is nil, indicating no link.

## See Also

### Getting text attribute keys

- [NSShadowAttributeName](uikit/nsshadowattributename.md)
- [NSTextEffectAttributeName](uikit/nstexteffectattributename.md)
- [NSTextHighlightColorSchemeAttributeName](uikit/nstexthighlightcolorschemeattributename.md)
- [NSTextHighlightStyleAttributeName](uikit/nstexthighlightstyleattributename.md)
- [UITextItemTagAttributeName](uikit/uitextitemtagattributename.md)
- [NSWritingToolsExclusionAttributeName](uikit/nswritingtoolsexclusionattributename.md)
