Files

104 lines
2.4 KiB
Markdown
Raw Normal View History

---
id: 6193e40e67d94029468e6b2d
title: Step 13
challengeType: 0
dashedName: step-13
---
# --description--
Below your `.section` element, create another `h2` element with the text `Liabilities`. Following that, create another `div` with the `class` set to `section`.
# --hints--
You should create a new `h2` element below your existing `.section` element.
```js
assert(document.querySelector('.section')?.nextElementSibling?.localName === 'h2');
```
Your new `h2` element should have the text `Liabilities`.
```js
assert(document.querySelector('.section')?.nextElementSibling?.textContent === 'Liabilities');
```
You should create a new `div` element within your `#sheet` element.
```js
assert(document.querySelector('#sheet')?.lastElementChild?.localName === 'div');
```
Your new `div` element should have a `class` attribute set to `section`.
```js
assert(document.querySelector('#sheet')?.lastElementChild?.classList?.contains('section'));
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AcmeWidgetCorp Balance Sheet</title>
<link rel="stylesheet" type="text/css" href="./styles.css" />
</head>
<body>
<div id="sheet">
<div id="header">
<h1>Balance Sheet</h1>
<h2>AcmeWidgetCorp</h2>
<p class="row">
<span>2019</span>
<span>2020</span>
<span class="current">2021</span>
</p>
</div>
<h2>Assets</h2>
<div class="section">
<p class="row">
<span class="name"></span>
<span></span>
<span></span>
<span class="current"></span>
</p>
<span class="notes"></span>
<p class="row">
<span class="name"></span>
<span></span>
<span></span>
<span class="current"></span>
</p>
<span class="notes"></span>
<p class="row">
<span class="name"></span>
<span></span>
<span></span>
<span class="current"></span>
</p>
<span class="notes"></span>
<p class="row total">
<span class="name"></span>
<span></span>
<span></span>
<span class="current"></span>
</p>
</div>
--fcc-editable-region--
--fcc-editable-region--
</div>
<footer>Last Updated: December 2021</footer>
</body>
</html>
```
```css
```