On this page
Modifying the <head>
We can use the <Head />
component in $fresh/runtime.ts
to add elements as
children of the <head>
element. By adding elements as children of Fresh’s
<Head />
tag, these automatically get injected into the <head>
element of
the web page. Some uses include:
- Setting the document title using `
` - Specifying page metadata using ``
- Linking to resources like stylesheets using ``
- Including third-party JavaScript code using `