Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-box-model/step-001.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

1.0 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
60a3e3396c7b40068ad6996a Step 1 0 step-1

--description--

By now, you should be familiar with the basic elements an HTML page should have.

Set up your code with a DOCTYPE declaration, an html element, a head element, and a body element.

--hints--

Your code should have a <!DOCTYPE html> declaration.

assert(code.match(/<!DOCTYPE html>/i));

Your code should have an html element.

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

Your code should have a head element within the html element.

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

Your code should have a body element within the html element.

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

Your head element should come before your body element.

assert(document.querySelector('body').previousElementSibling.tagName === 'HEAD');

--seed--

--seed-contents--

--fcc-editable-region--

--fcc-editable-region--