Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/step-002.md
Nicholas Carrigan (he/him) b36cdbafd1 chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01:00

878 B

id, title, challengeType, dashedName
id title challengeType dashedName
5d822fd413a79914d39e98ca Step 2 0 step-2

--description--

Add opening and closing html tags below the DOCTYPE so you have a place to start putting some code.

--hints--

Your html element should be below the DOCTYPE declaration.

assert(code.match(/(?<!<html\s*>)<!DOCTYPE\s+html\s*>/gi));

Your html element should have an opening tag.

assert(code.match(/<html\s*>/gi));

Your html element should have a closing tag.

assert(code.match(/<\/html\s*>/));

Your html tags should be in the correct order.

assert(code.match(/<html\s*>\s*<\/html\s*>/));

You should only have one html element.

assert(document.querySelectorAll('html').length === 1);

--seed--

--seed-contents--

<!DOCTYPE html>
--fcc-editable-region--

--fcc-editable-region--