Files
Nicholas Carrigan (he/him) 57d303826c chore: rename nutrition label (#44205)
* chore: rename files

* chore: update codebase

* chore: proper title case

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-11-19 23:10:09 -06:00

1019 B

id, title, challengeType, dashedName
id title challengeType dashedName
615f2d4150fe0d4cbd0f2628 Step 2 0 step-2

--description--

Below your h1 element, add a p element with the text 8 servings per container.

--hints--

You should add a new p element.

assert.exists(document.querySelector('p'));

Your p element should be within your body element.

assert(document.querySelector('p')?.parentElement?.localName === 'body');

Your p element should come after your h1 element.

assert(document.querySelector('p')?.previousElementSibling?.localName === 'h1');

Your p element should have the text 8 servings per container.

assert(document.querySelector('p')?.innerText === '8 servings per container');

--seed--

--seed-contents--

--fcc-editable-region--
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Nutrition Label</title>
  </head>
  <body>
    <h1>Nutrition Facts</h1>

  </body>
</html>
--fcc-editable-region--