---
title: "createHTMLDocument(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domimplementation/createhtmldocument(_:)"
---

# createHTMLDocument(_:)

## Declaration

```swift
func createHTMLDocument(_ title: String!) -> DOMHTMLDocument!
```
