Update curriculum/challenges/english/01-responsive-web-design/learn-css-colors-by-building-a-color-markers-set/step-009.md

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Kristofer Koishigawa
2021-12-20 16:24:42 +09:00
committed by GitHub
parent 8924fd8810
commit b8653e8259

View File

@@ -34,10 +34,7 @@ assert(document.querySelector('div')?.parentElement?.localName === 'body');
Your `div` element should be after the `h1` element.
```js
const bodyElements = [...document.querySelector('body')?.children];
const h1 = document.querySelector('h1');
const div = document.querySelector('div');
assert(bodyElements.indexOf(h1) < bodyElements.indexOf(div));
assert.exists(document.querySelector('h1 + div'));
```
Your `div` element should have a `class` attribute set to `container`.