2022-05-30 16:25:46 +00:00
---
id: 61fd6cc9475a784b7776233e
title: Step 7
challengeType: 0
dashedName: step-7
---
# --description--
Sotto l'elemento `div` esistente, aggiungi un nuovo elemento `div` con un attributo `class` del valore `table-wrap` . Questo sarà il contenitore per le tue tabelle.
Al suo interno, aggiungi tre elementi `table` . Userai il CSS per rendere questi elementi una singola tabella, ma utilizzare tabelle separate aiuterà i lettori di schermo a capire il flusso del documento.
# --hints--
Dovresti creare un nuovo elemento `div` .
```js
assert(document.querySelectorAll('div')?.length === 2);
```
Il nuovo elemento `div` dovrebbe avere l'attributo `class` con il valore `table-wrap` .
```js
assert(document.querySelector('.table-wrap')?.localName === 'div');
```
L'elemento `.table-wrap` dovrebbe trovarsi dopo il `div` esistente.
```js
assert(document.querySelectorAll('div')?.[1]?.classList?.contains('table-wrap'));
```
L'elemento `.table-wrap` dovrebbe avere tre elementi `table` .
```js
const children = [...(document.querySelector('.table-wrap')?.children ?? [])];
assert(children?.length === 3);
children.forEach(child => assert(child?.localName === 'table'));
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
2022-07-04 17:07:30 +00:00
< html lang = "en" >
2022-05-30 16:25:46 +00:00
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
< title > Balance Sheet< / title >
2022-06-21 15:00:08 +00:00
< link rel = "stylesheet" href = "./styles.css" >
2022-05-30 16:25:46 +00:00
< / head >
< body >
< main >
< section >
< h1 >
< span class = "flex" >
< span > AcmeWidgetCorp< / span >
< span > Balance Sheet< / span >
< / span >
< / h1 >
< div id = "years" aria-hidden = "true" >
< span class = "year" > 2019< / span >
< span class = "year" > 2020< / span >
< span class = "year" > 2021< / span >
< / div >
--fcc-editable-region--
--fcc-editable-region--
< / section >
< / main >
< / body >
< / html >
```
```css
```