Make Dead Links Using the Hash Symbol in html

Make Dead Links Using the Hash Symbol in html
0.0 0

#1

Tell us what’s happening:
I would like to know, why the href attribute( cat photos) is taking me to the free camp link(https://learn.freecodecamp.org/#) ? how is it happening?

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p>Click here to view more <a href="#" target="_blank">cat photos</a> </p>
  
  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
  
  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/make-dead-links-using-the-hash-symbol


#2

When you just put a # for href, it uses the base url of the page your are current on. In this case, the challenge is located at https://learn.freecodecamp.org.