---
title: urlFragmentAllowed
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nscharacterset/urlfragmentallowed
---

# urlFragmentAllowed

Returns the character set for characters allowed in a fragment URL component.

## Declaration

```swift
class var urlFragmentAllowed: CharacterSet { get }
```

## Discussion

Discussion The fragment component of a URL is the component after a # symbol. For example, in the URL http://www.example.com/index.html#jumpLocation, the fragment is jumpLocation.

## See Also

### Getting Character Sets for URL Encoding

- [urlHostAllowed](foundation/nscharacterset/urlhostallowed.md)
- [urlPasswordAllowed](foundation/nscharacterset/urlpasswordallowed.md)
- [urlPathAllowed](foundation/nscharacterset/urlpathallowed.md)
- [urlQueryAllowed](foundation/nscharacterset/urlqueryallowed.md)
- [urlUserAllowed](foundation/nscharacterset/urluserallowed.md)
