2021-12-03 14:20:34 -08:00
|
|
|
---
|
2022-02-18 10:15:16 -08:00
|
|
|
id: 61fd66c687e610436494c6f1
|
2021-12-03 14:20:34 -08:00
|
|
|
title: Step 3
|
|
|
|
challengeType: 0
|
|
|
|
dashedName: step-3
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-02-18 10:15:16 -08:00
|
|
|
Within your `section` element, add an `h1` element with a nested `span` element.
|
2021-12-03 14:20:34 -08:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-02-18 10:15:16 -08:00
|
|
|
Your `section` element should have an `h1` element.
|
2021-12-03 14:20:34 -08:00
|
|
|
|
|
|
|
```js
|
2022-02-18 10:15:16 -08:00
|
|
|
assert(document.querySelector('section')?.children?.[0]?.localName === 'h1');
|
2021-12-03 14:20:34 -08:00
|
|
|
```
|
|
|
|
|
2022-02-18 10:15:16 -08:00
|
|
|
Your `h1` element should have a `span` element.
|
2021-12-03 14:20:34 -08:00
|
|
|
|
|
|
|
```js
|
2022-02-18 10:15:16 -08:00
|
|
|
assert(document.querySelector('h1')?.children?.[0]?.localName === 'span');
|
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>
|
2021-12-03 14:20:34 -08:00
|
|
|
--fcc-editable-region--
|
2022-02-18 10:15:16 -08:00
|
|
|
<section>
|
|
|
|
</section>
|
2021-12-03 14:20:34 -08:00
|
|
|
--fcc-editable-region--
|
2022-02-18 10:15:16 -08:00
|
|
|
</main>
|
2021-12-03 14:20:34 -08:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
|
|
|
|
```
|