---
id: 6140c9d35015ae0ba0c250e8
title: Hatua ya 2
challengeType: 0
dashedName: step-2
---

# --description--

Ongeza `div` ndani ya kipengele chako cha `body` na ukipe `class` ya `wheel`.

Ndani ya `div` yako mpya, ongeza vipengele sita vya `span` kwa `class` iliyowekwa kuwa `line` na vipengele sta vya `div` vilivyo na `class` vilivyowekwa kuwa `cabin`.

# --hints--

Unapaswa kuunda `div` mpya ndani ya kipengele chako cha `body`.

```js
const divs = [...document.querySelector('body')?.children].filter(child => child?.localName === 'div');
assert(divs?.length === 1);
```

Kipengele chako cha `div` ndani ya `body` kinapaswa kuwa na `class` ya `wheel`.

```js
assert(document.querySelector('body div')?.classList?.contains('wheel'));
```

Kipengele chako cha `.wheel` kinafaa kuwa na vipengele sita vya `span` ndani.

```js
assert(document.querySelectorAll('.wheel span')?.length === 6);
```

Vipengele vyako sita vya `span` ndani ya kipengele cha `.wheel` vinapaswa kuwa na `class` ya `line`.

```js
const spans = [...document.querySelectorAll('.wheel span')];
assert(spans?.every(span => span?.classList?.contains('line')));
assert(document.querySelectorAll('.line')?.length === 6);
```

Kipengele chako cha `.wheel` kinafaa kuwa na vipengele sita vya `div` ndani.

```js
assert(document.querySelectorAll('.wheel div')?.length === 6);
```

Vipengele vyako sita vya `div` ndani ya kipengele cha `.wheel` vinapaswa kuwa na `class` ya `cabin`.

```js
const divs = [...document.querySelectorAll('.wheel div')];
assert(divs?.every(div => div?.classList?.contains('cabin')));
assert(document.querySelectorAll('.cabin')?.length === 6);
```

# --seed--

## --seed-contents--

```html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Ferris Wheel</title>
    <link rel="stylesheet" href="./styles.css" />
  </head>
--fcc-editable-region--
  <body>

  </body>
--fcc-editable-region--
</html>
```

```css

```
