charset, viewport and title
A few lines in the head decide how the page looks on phones and in the browser tab. Visitors never see these lines on the page itself.
Step by step
<meta charset="UTF-8">makes letters like ü, é and · show up correctly.- The viewport line tells phones to use their real screen width with
width=device-width. <title>sets the text in the browser tab and needs a closing</title>.- The meta description is a short summary that search engines may show.
The card, bug marked
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport"
6 content="width=1024, initial-scale=1.0">
This is how it's right
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Imprint | Max Muster</title>
<meta name="description"
content="Imprint of example.com.">
</head>
Exercises for this topic
Key rule
Every page needs a charset, a device-width viewport and a closed title.
Where you'll meet this
These lines sit right after <head> in nearly every real website. If a page looks tiny on a phone, check the viewport line first.