---
title: title()
framework: webkit
role: symbol
role_heading: Instance Method
path: webkit/webdocumentrepresentation/title()
---

# title()

Returns the receiver’s document title.

## Declaration

```swift
func title() -> String!
```

## Return Value

Return Value The title associated with the receiving document object.
