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

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
5d822fd413a79914d39e98cb Step 3 0 step-3

--description--

Next, add opening and closing head and body tags within the html element.

--hints--

You should have an opening head tag.

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

You should have a closing head tag.

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

You should have an opening body tag.

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

You should have a closing body tag.

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

The head and body elements should be siblings.

assert(document.querySelector('head').nextElementSibling.localName === 'body');

The head element should be within the html element.

assert([...document.querySelector('html').children].some(x => x.localName === 'head'));

The body element should be within the html element.

assert([...document.querySelector('html').children].some(x => x.localName === 'body'));

--seed--

--seed-contents--

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