Internal link within a page

Internal link within a page
0.0 0

#1

I cannot understand the internal link and what it does to the page?

Also how to use this syntax to create a link:

<a href="#contacts-header">Contacts</a>
...
<h2 id="contacts-header">Contacts</h2>

#2

same wiiith meeee! :frowning:


#3

When you click that link, the page will scroll to the element with that ID, that’s it


#4

can you explain with an exaple? I cannot complete the task.


#5

Which test are you trying to complete?


#6

I don’t know what the task is, the code you posted does exactly what I said.


#7

I found a way just do this footer id="'footer"then change the href value to #footer so you can tag it when it is click it will scroll down below to the footer :wink:


#8

Capture


#9

the 11th exercise which involves adding an link within a page


#10

code should be

basically you add the id “footer” to the footer and change the href to “#footer”. that way the page will automatically scroll down to the footer

<h2>CatPhotoApp</h2>
<main>
  
  <a href="#footer">Jump to Bottom</a>
  
  <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. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. 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. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
  <p>Meowwww loved it, hated it, loved it, hated it yet spill litter box, scratch at owner, destroy all furniture, especially couch or lay on arms while you're using the keyboard. Missing until dinner time toy mouse squeak roll over. With tail in the air lounge in doorway. Man running from cops stops to pet cats, goes to jail.</p>
  <p>Intently stare at the same spot poop in the plant pot but kitten is playing with dead mouse. Get video posted to internet for chasing red dot leave fur on owners clothes meow to be let out and mesmerizing birds leave fur on owners clothes or favor packaging over toy so purr for no reason. Meow to be let out play time intently sniff hand run outside as soon as door open yet destroy couch.</p>
  
</main>
  
<footer id="footer">Copyright Cat Photo App</footer>

#11

thanks for helping me @cub3fox


#12

so I can give any name after # and it should be same before id


#13

<a href="anyName">click</a>

will go to anything that has id=“anyName” for example

<div id="anyName"> lorem ipsum </div>