freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-variables-skyline/part-002.md

878 B

id title challengeType dashedName
5d822fd413a79914d39e98ca Part 2 0 part-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--