Files
Nicholas Carrigan (he/him) 2cfa1d3bcd chore: rename css skyline (#44211)
* chore: rename files

* chore: update codebase

* chore: proper title case

* chore: block name

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-11-20 08:34:21 -06:00

70 lines
1.1 KiB
Markdown

---
id: 5d822fd413a79914d39e98cb
title: Step 3
challengeType: 0
dashedName: step-3
---
# --description--
Next, add opening and closing `head` and `body` tags within the `html` element.
# --hints--
You should have an opening `head` tag.
```js
assert(code.match(/<head\s*>/i));
```
You should have a closing `head` tag.
```js
assert(code.match(/<\/head\s*>/i));
```
You should have an opening `body` tag.
```js
assert(code.match(/<body\s*>/i));
```
You should have a closing `body` tag.
```js
assert(code.match(/<\/body\s*>/i));
```
The `head` and `body` elements should be siblings.
```js
assert(document.querySelector('head').nextElementSibling.localName === 'body');
```
The `head` element should be within the `html` element.
```js
assert([...document.querySelector('html').children].some(x => x.localName === 'head'));
```
The `body` element should be within the `html` element.
```js
assert([...document.querySelector('html').children].some(x => x.localName === 'body'));
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
--fcc-editable-region--
<html>
</html>
--fcc-editable-region--
```