diff --git a/content/guide/06-special-components.md b/content/guide/06-special-components.md index 5b62fb7b0..8481cf6fc 100644 --- a/content/guide/06-special-components.md +++ b/content/guide/06-special-components.md @@ -167,6 +167,11 @@ You can also bind to certain values — so far `innerWidth`, `outerWidth`, `inne ``` +### `` + +The `` tag, just like ``, gives you a convenient way to declaratively add event listeners to the `document` object. This is useful for listening to events that don't fire on `window`, such as `mouseenter` and `mouseleave`. + + ### `` If you're building an application with Svelte — particularly if you're using [Sapper](https://sapper.svelte.technology) — then it's likely you'll need to add some content to the `` of your page, such as adding a `` element. @@ -180,4 +185,4 @@ You can do that with the `<svelte:head>` tag: </svelte:head> ``` -When [server rendering](guide#server-side-rendering), the `<head>` contents can be extracted separately to the rest of the markup. \ No newline at end of file +When [server rendering](guide#server-side-rendering), the `<head>` contents can be extracted separately to the rest of the markup.