Polish your page's head: title, description, favicon and secure external links.
Open this lesson in KodokonEven before visiting your page, people see it elsewhere: in a browser tab, in search results, in a shared link. All of that happens in the head. A well-crafted head is the difference between an amateur site and a professional one.
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<title>Quick Recipes | Lea's Kitchen</title>
<meta
name="description"
content="30 recipes ready in 20 minutes flat,
tested by our readers."
>
</head>The title appears in the tab, in bookmarks and in search results: make it unique per page, descriptive, with the subject first and around 60 characters. The meta description is the text shown under the title in search engines: aim for 150 characters that make people want to click.
The favicon is the small icon shown in the tab and in bookmarks. The modern practice: a fallback favicon.ico at the root of the site, an SVG version that stays sharp at every size, and a dedicated icon for Apple home screens.
<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-icon.png">One last professional reflex: external links. Opening a link in a new tab with target="_blank" gives the opened page potential access to window.opener, and therefore to your page. Add rel="noopener noreferrer" to sever that link and avoid passing along the referring address.
<a
href="https://developer.mozilla.org"
target="_blank"
rel="noopener noreferrer"
>
MDN documentation (new tab)
</a>