---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# URL.host

The **`host`** property of the `URL` interface is
a string containing the host, that is the `URL.hostname`, and then, if the `port` of the URL is nonempty, a
`':'`, followed by the `port` of the URL.

## Value

A string.
