---
title: "title(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/title(for:)"
---

# title(for:)

Called when the title of the tab is needed.

## Declaration

```swift
optional func title(for context: WKWebExtensionContext) -> String?
```

## Parameters

- `context`: The context in which the web extension is running.

## Discussion

Discussion Defaults to title of the tab’s web view if not implemented.
