Files
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06:00

55 lines
902 B
Markdown

---
id: 5d822fd413a79914d39e98ca
title: Step 2
challengeType: 0
dashedName: step-2
---
# --description--
Add opening and closing `html` tags below the `DOCTYPE` so you have a place to start putting some code.
# --hints--
Your `DOCTYPE` declaration should be at the beginning of your HTML.
```js
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
```
Your `html` element should have an opening tag.
```js
assert(code.match(/<html\s*>/gi));
```
Your `html` element should have a closing tag.
```js
assert(code.match(/<\/html\s*>/));
```
Your `html` tags should be in the correct order.
```js
assert(code.match(/<html\s*>\s*<\/html\s*>/));
```
You should only have one `html` element.
```js
assert(document.querySelectorAll('html').length === 1);
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
--fcc-editable-region--
--fcc-editable-region--
```