Skip to main content

The <svelte:head> element allows you to insert elements inside the <head> of your document:

<svelte:head>
	<link rel="stylesheet" href="/tutorial/dark-theme.css">
</svelte:head>

In server-side rendering (SSR) mode, contents of <svelte:head> are returned separately from the rest of your HTML.

We stand with Ukraine. Donate → We stand with Ukraine. Petition your leaders. Show your support.