Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/basic-css-cafe-menu/step-007.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
5f332b23c2045fb843337579 Step 7 0 step-7

--description--

Since the p element added in the previous step provides supplemental information about the cafe, nest both the h1 and p elements in a header element.

--hints--

You should have an opening <header> tag.

assert(code.match(/<header>/i));

You should have a closing </header> tag.

assert(code.match(/<\/header>/i));

Your h1 element should be nested in your header element.

const header = document.querySelectorAll('header')[0];
assert(header.children[0].tagName === 'H1');

Your p element should be nested in your header element.

const header = document.querySelectorAll('header')[0];
assert(header.children[1].tagName === "P");

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Camper Cafe Menu</title>
  </head>
  <body>
--fcc-editable-region--
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
--fcc-editable-region--
  </body>
<html>