+ 14
How do you link to some place on the same page in HTML.
Question
9 Respuestas
+ 31
hello Elijah D.
first, create a bookmark with the id attribute for example id="Chapter1"
<h1 id="Chapter1">Chapter 1</h1>
Then, add a link to the bookmark ("Jump to Chapter 1"), from within the same page:
<a href="#Chapter1">Jump to Chapter 1</a>
that is it!
+ 10
Thanks for your input.
+ 8
Wow thats easy! Thank you.
+ 6
+asa22 that's not a bookmark but an anchor...
+ 4
relax, xXiamnerdyXx , w3schools calls it a bookmark. Internal link might be less misleading, but there are people out there who refer to this as such.
+ 4
:) I actually know these as "fragment identifiers"
They're often used just for in-page jumping but they can be a bit more useful (media, PDF control, etc):
https://en.m.wikipedia.org/wiki/Fragment_identifier
+ 1
<div id="top"></div>
...
...
...
<a href="#top">top<a>
This is how I understood the question to best answer it.
0
wow am i can use that in all the pages
- 4
08778/^&7