2021-09-28 21:38:44 +01:00
---
id: 61329b210dac0b08047fd6ab
2021-10-21 10:07:52 -07:00
title: Step 3
2021-09-28 21:38:44 +01:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-3
2021-09-28 21:38:44 +01:00
---
# --description--
2022-03-17 16:13:16 -04:00
Continuing with the `meta` elements, a `viewport` definition tells the browser how to render the page. Including one betters visual accessibility on mobile, and improves _SEO_ (search engine optimisation).
2021-09-28 21:38:44 +01:00
Add a `viewport` definition with a `content` attribute detailing the `width` and `initial-scale` of the page.
# --hints--
You should create another `meta` element in the `head` .
```js
2022-01-24 19:02:25 +01:00
assert.equal(document.querySelectorAll('head > meta')?.length, 2);
2021-09-28 21:38:44 +01:00
```
You should give the `meta` a `name` attribute of `viewport` .
```js
2022-01-24 19:02:25 +01:00
assert.equal(document.querySelectorAll('head > meta[name="viewport"]')?.length, 1);
2021-09-28 21:38:44 +01:00
```
You should give the `meta` a `content` attribute of `width=device-width, initial-scale=1` .
```js
2022-03-07 06:11:20 +01:00
assert.equal(document.querySelectorAll('head > meta[content="width=device-width, initial-scale=1.0"]')?.length || document.querySelectorAll('head > meta[content="width=device-width, initial-scale=1"]')?.length, 1);
2021-09-28 21:38:44 +01:00
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
< html lang = "en" >
--fcc-editable-region--
< head >
< meta charset = "UTF-8" / >
< link rel = "stylesheet" href = "styles.css" / >
< / head >
--fcc-editable-region--
< body >
< / body >
< / html >
```
```css
body {
background: #f5f6f7 ;
color: #1b1b32 ;
font-family: Helvetica;
margin: 0;
}
```