2021-09-28 21:38:44 +01:00
---
id: 613297a923965e0703b64796
2021-10-21 10:07:52 -07:00
title: Step 2
2021-09-28 21:38:44 +01:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-2
2021-09-28 21:38:44 +01:00
---
# --description--
2022-03-17 16:13:16 -04:00
You may be familiar with the `meta` element already; it is used to specify information about the page, such as the title, description, keywords, and author.
2021-09-28 21:38:44 +01:00
2022-03-17 16:13:16 -04:00
Give your page a `meta` element with an appropriate `charset` value.
2021-09-28 21:38:44 +01:00
The `charset` attribute specifies the character encoding of the page, and, nowadays, `UTF-8` is the only encoding supported by most browsers.
# --hints--
You should create a `meta` element within the `head` element.
```js
2022-01-24 19:02:25 +01:00
assert.exists(document.querySelector('head > meta'));
2021-09-28 21:38:44 +01:00
```
You should give the `meta` tag a `charset` of `UTF-8` .
```js
2022-01-24 19:02:25 +01:00
assert.equal(document.querySelector('head > meta')?.getAttribute('charset'), 'UTF-8');
2021-09-28 21:38:44 +01:00
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
< html lang = "en" >
--fcc-editable-region--
< head >
< link rel = "stylesheet" href = "styles.css" / >
< / head >
--fcc-editable-region--
< body >
< / body >
< / html >
```
```css
body {
background: #f5f6f7 ;
color: #1b1b32 ;
font-family: Helvetica;
margin: 0;
}
```