Files

66 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

---
id: 61fd6ab779390f49148773bb
title: Step 5
challengeType: 0
dashedName: step-5
---
# --description--
Below your `h1` element, create a `div` element. Give it an `id` attribute set to `years`. You want this particular element to be hidden from screen readers, so give it the `aria-hidden` attribute set to `true`.
# --hints--
You should create a new `div` element after your `h1` element.
```js
assert(document.querySelector('h1')?.nextElementSibling?.localName === 'div');
```
Your new `div` element should have an `id` attribute set to `years`.
```js
assert(document.querySelector('div')?.getAttribute('id') === 'years');
```
Your new `div` element should have the `aria-hidden` attribute set to `true`.
```js
assert(document.querySelector('div')?.getAttribute('aria-hidden') === 'true');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Balance Sheet</title>
<link rel="stylesheet" type="text/css" href="./styles.css">
</head>
<body>
<main>
<section>
<h1>
<span class="flex">
<span>AcmeWidgetCorp</span>
<span>Balance Sheet</span>
</span>
</h1>
--fcc-editable-region--
--fcc-editable-region--
</section>
</main>
</body>
</html>
```
```css
```