STEP 1 · LEARN How it works Declare UTF-8 encoding and the viewport for mobile devices. Semantic structure should describe meaning, not visual appearance.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web workshop</title>
</head>
<body><h1>Web workshop</h1></body>
</html>meta charset declares the document character encoding. meta viewport tells a mobile browser that the layout viewport should follow the device width. Both are metadata and belong in head.
<head><meta charset=""><meta name="viewport"></head>The elements exist, but their values are missing: the browser receives neither UTF-8 encoding nor the width=device-width rule.
EXPECTED RESULT A head containing meta charset="UTF-8" and a viewport meta whose content includes width=device-width.
STEP 2 · APPLY Your exercise Complete the example. Declare UTF-8 encoding and the viewport for mobile devices.
Code Result
index.html HTML
Exercise code
STEP 4 · CHECK
What needs to pass 0% not checked
○ The head declares UTF-8. ○ The viewport includes width=device-width.
Check exercise✓ Show a hint
Explain the solution logic+ First complete charset="UTF-8", then add name="viewport" and content="width=device-width, initial-scale=1" to the second meta element.