Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-photo-gallery/step-004.md
Nicholas Carrigan (he/him) 2868347742 feat: css photo gallery (#43602)
* feat: initial infra

* feat: create steps

* feat: prototype tests

Haven't tested locally yet :)

* feat: complete tests

* feat: move image size step

* chore: apply shaun's review suggestions

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

* chore: apply kris' review suggestions

Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>

* fix: index.md linting

* chore: steps are parts in disguise

* chore: apply tom's review suggestions

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* fix: colon to period

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-10-27 13:40:44 -05:00

1.3 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
61537c5f81f0cf325b4a854c Step 4 0 step-4

--description--

Within the body element, create a div with the class set to header.

Inside the .header element nest an h1 element with the text CSS FLEXBOX PHOTO GALLERY.

--hints--

You should have a div element within your body element.

assert.exists(document.querySelector('body')?.querySelector('div'))

Your div element should have the class set to header.

assert(document?.querySelector('body')?.querySelector('div')?.classList?.contains('header'))

Your .header element should have an h1 element.

assert.exists(document.querySelector('.header')?.querySelector('h1'));

Your h1 should have the text CSS FLEXBOX PHOTO GALLERY. Remember that casing matters.

assert(document?.querySelector('.header')?.querySelector('h1')?.innerText === 'CSS FLEXBOX PHOTO GALLERY')

--seed--

--seed-contents--

--fcc-editable-region--
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS Flexbox Photo Gallery</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
  </body>
</html>
--fcc-editable-region--