Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f332b23c2045fb843337579.md
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06: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>