2021-12-03 14:20:34 -08:00
---
2022-02-18 10:15:16 -08:00
id: 61fd6b7c83dbf54a08cf0498
2021-12-03 14:20:34 -08:00
title: Step 6
challengeType: 0
dashedName: step-6
---
# --description--
2022-02-18 10:15:16 -08:00
Within your `div` element, add three `span` elements. Give each of them a `class` attribute set to `year` , and add the following text (in order): `2019` , `2020` , and `2021` .
2021-12-03 14:20:34 -08:00
# --hints--
2022-02-18 10:15:16 -08:00
Your `div` element should have three `span` elements.
2021-12-03 14:20:34 -08:00
```js
2022-02-18 10:15:16 -08:00
assert(document.querySelector('div')?.children?.length === 3);
2021-12-03 14:20:34 -08:00
```
2022-02-18 10:15:16 -08:00
Each `span` element should have a `class` attribute set to `year` .
2021-12-03 14:20:34 -08:00
```js
2022-02-18 10:15:16 -08:00
const spans = [...document.querySelector('div')?.children];
spans.forEach(span => assert(span?.classList?.contains('year')));
2021-12-03 14:20:34 -08:00
```
2022-02-18 10:15:16 -08:00
Your first `span` should have the text `2019` .
2021-12-03 14:20:34 -08:00
```js
2022-02-18 10:15:16 -08:00
assert(document.querySelector('div')?.children?.[0]?.textContent === '2019');
```
Your second `span` should have the text `2020` .
```js
assert(document.querySelector('div')?.children?.[1]?.textContent === '2020');
```
Your third `span` should have the text `2021` .
```js
assert(document.querySelector('div')?.children?.[2]?.textContent === '2021');
2021-12-03 14:20:34 -08:00
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
< html >
< head >
2022-02-18 10:15:16 -08:00
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2022-03-14 15:54:43 +00:00
< title > Balance Sheet< / title >
2022-02-18 10:15:16 -08:00
< link rel = "stylesheet" type = "text/css" href = "./styles.css" >
2021-12-03 14:20:34 -08:00
< / head >
< body >
2022-02-18 10:15:16 -08:00
< main >
< section >
< h1 >
< span class = "flex" >
< span > AcmeWidgetCorp< / span >
< span > Balance Sheet< / span >
< / span >
< / h1 >
2021-12-03 14:20:34 -08:00
--fcc-editable-region--
2022-02-18 10:15:16 -08:00
< div id = "years" aria-hidden = "true" >
< / div >
2021-12-03 14:20:34 -08:00
--fcc-editable-region--
2022-02-18 10:15:16 -08:00
< / section >
< / main >
2021-12-03 14:20:34 -08:00
< / body >
< / html >
```
```css
```