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

1.4 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
671141d8e32fe934c26fa1be Step 12 0 step-12

--description--

Add the words See more before the anchor element and in our gallery after the anchor element

--hints--

You should use the existing anchor element, do not create a new one.

assert.lengthOf(document.querySelectorAll('a'), 1);

You should have the words See more before the anchor element.

assert.match(code, /See more <a href="https:\/\/freecatphotoapp\.com">cat photos<\/a>/)

You should have the words in our gallery after the anchor element.

assert.match(code, /<a href="https:\/\/freecatphotoapp\.com">cat photos<\/a> in our gallery/)

You should have See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery in your code.

assert.match(code, /See more <a href="https:\/\/freecatphotoapp\.com">cat photos<\/a> in our gallery/)

--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--
      <a href="https://freecatphotoapp.com">cat photos</a>
--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>