Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/671141f948cbab359e74cc93.md
2024-10-21 07:57:40 -07:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
671141f948cbab359e74cc93 Step 13 0 step-13

--description--

Add p tags to turn See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery. into a paragraph.

--hints--

You should add a p element around See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery..

const P = document.querySelectorAll('p')[1];
assert.exists(P);
assert.strictEqual(P.innerText, "See more cat photos in our gallery.");

You should still have the anchor element inside the new paragraph.

const P = document.querySelectorAll('p')[1];
assert.exists(P.querySelector('a'));

--seed--

--seed-contents--

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>
--fcc-editable-region--
      See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.
--fcc-editable-region--
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>