Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/learn-more-about-css-pseudo-selectors-by-building-a-balance-sheet/61fd6343fb42013d99bcd7f3.md

latest800 B
Original Source

--description--

Within your body element, nest a section element within a main element.

--hints--

The first element inside the body element should be your main element.

js
assert(document.querySelector('body')?.children?.[0]?.localName === 'main');

You should have a section element within your main element.

js
assert(document.querySelector('main')?.children?.[0]?.localName === 'section');

--seed--

--seed-contents--

html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Balance Sheet</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
--fcc-editable-region--
  <body>
  </body>
--fcc-editable-region--
</html>
css