Files

55 lines
953 B
Markdown
Raw Permalink Normal View History

---
id: 60f027099a15b00485563dd2
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
// Possibly a redundant test, as browser fixes this
assert(document.querySelectorAll('html').length === 1);
```
# --seed--
## --seed-contents--
```html
--fcc-editable-region--
<!DOCTYPE html>
--fcc-editable-region--
```