Files
Nicholas Carrigan (he/him) 59c24bd4be chore: rename cafe menu (#44201)
* chore: rename files

* chore: update codebase

* chore: proper title case

* chore: missed block name

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-11-19 22:22:24 -06:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
5f33310c1851c6c4da013250 Step 8 0 step-8

--description--

It's time to add some menu content. Add a main element below the existing header element. It will eventually contain pricing information about coffee and desserts offered by the cafe.

--hints--

Your code should have an opening <main> tag.

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

Your code should have a closing </main> tag.

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

You should not change your header element. Make sure you don't accidentally delete your closing tag.

assert($('header').length === 1);

Your main tag should come after your header tag.

const main = document.querySelectorAll('main')[0];
assert(main.previousElementSibling.tagName === 'HEADER');

--seed--

--seed-contents--

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