--- id: 61fd7b3fcaa5406257abc5d1 title: Step 17 challengeType: 0 dashedName: step-17 --- # --description-- Time to move on to your second table. Start by giving it a `caption` element set to `Liabilities`. Then add your `thead` and `tbody`. # --hints-- Your second `table` element should have a `caption` element. ```js assert(document.querySelectorAll('table')?.[1]?.children?.[0]?.localName === 'caption'); ``` Your `caption` element should have the text `Liabilities`. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('caption')?.textContent === 'Liabilities'); ``` Your second `table` element should have a `thead` element. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('thead')); ``` Your second `table` element should have a `tbody` element. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('tbody')); ``` Your `thead` element should be immediately below your `caption` element. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('caption')?.nextElementSibling?.localName === 'thead'); ``` Your `tbody` element should be immediately below your `thead` element. ```js assert(document.querySelectorAll('table')?.[1]?.querySelector('thead')?.nextElementSibling?.localName === 'tbody'); ``` # --seed-- ## --seed-contents-- ```html Balance Sheet

AcmeWidgetCorp Balance Sheet

Assets
2019 2020 2021
Cash This is the cash we currently have on hand. $25 $30 $28
Checking Our primary transactional account. $54 $56 $53
Savings Funds set aside for emergencies. $500 $650 $728
Total Assets $579 $736 $809
--fcc-editable-region--
--fcc-editable-region--
``` ```css ```