Creating Page Links to Navigate a Long Page

  • Thread starter grady
  • Start date
  • Tags
    Links
In summary: Originally posted by Greg Trial and error is infalible but still READ THE MANUAL it will save many years.
  • #1
grady
70
2
I am making a webpage and I need to have a bunch of links at the top of a really long page. The links take you to a certain location in the page. I've seen this done before, does anyone know how I can do this?
 
Computer science news on Phys.org
  • #2
Use anchors.

example:

<a href="yourpage#section1">Section 1</a>

Then down your page put:
<a name="section1">
 
  • #3
Thanks, Greg, that does just what I wanted.
 
  • #4
If you ever need to know anything else with html, just find a simple page that does what you want and view the source.
That's why I got my .html skills from!
 
  • #5
Originally posted by Dave
If you ever need to know anything else with html, just find a simple page that does what you want and view the source.
That's why I got my .html skills from!

Me Too.
 
  • #6
Originally posted by Pauly Man
Me Too.
Ditto. The best way to get skills is to steal them.
 
  • #7
i think you should atleast take a crahs course in html so you can weed out things
 
  • #8
Originally posted by grady
I am making a webpage and I need to have a bunch of links at the top of a really long page. The links take you to a certain location in the page. I've seen this done before, does anyone know how I can do this?

what software are you using? is it publisher, word, PP, etc...

but if your just want code then gregs correct.

<a href="yourpage#section1">Section 1</a>
 
  • #9
Originally posted by The Grimmus
i think you should atleast take a crahs course in html so you can weed out things
I don't think so.
You just need to be flexible a little bit, and just 'expect' what it is, then test (and fail), and test again (and fail again), then you would have learned it right (well, if u have time that is).
I learned VB, ASP, HTML in those way, and now i only use NotePad to write all my HTML.
 
  • #10
Notepad will help you learn the general concepts of different programming languages and more trust me ;)

Trial and error is infalible but still READ THE MANUAL it will save many years.
 

1. How do I create page links to navigate a long page?

To create page links for navigation on a long page, you can use the HTML anchor tag (<a>) with the href attribute. The href attribute should contain the ID of the section you want to navigate to on the long page. For example, <a href="#section2">Go to Section 2</a> will create a link that navigates to a section on the same page with the ID of "section2".

2. Can I create page links to navigate to a specific part of a long page?

Yes, you can create page links to navigate to a specific part of a long page by using the HTML anchor tag with the href attribute and the ID of the section you want to navigate to. This is useful for long pages with multiple sections, such as a table of contents.

3. How can I style my page links to make them more visually appealing?

You can style your page links using CSS to make them more visually appealing. You can change the font, color, size, and other properties of the links to match your website's design. You can also add hover effects or underline the links to make them stand out.

4. Is it possible to create page links that open in a new window or tab?

Yes, you can use the target attribute in the anchor tag to specify that the link should open in a new window or tab. For example, <a href="#section2" target="_blank">Go to Section 2</a> will open the link in a new tab.

5. Can I use images as page links?

Yes, you can use images as page links by wrapping the <img> tag inside an anchor tag with the href attribute. This will create a clickable image that navigates to the specified section of the long page. You can also use CSS to style the image link, such as adding a border or changing the cursor when hovering over the image.

Similar threads

  • Computing and Technology
Replies
12
Views
1K
  • Computing and Technology
Replies
5
Views
2K
  • Computing and Technology
Replies
1
Views
784
  • Computing and Technology
Replies
6
Views
6K
  • Computing and Technology
Replies
7
Views
2K
  • Programming and Computer Science
Replies
3
Views
243
Replies
10
Views
970
  • Computing and Technology
Replies
5
Views
4K
  • Feedback and Announcements
Replies
4
Views
1K
  • Science and Math Textbooks
Replies
2
Views
1K
Back
Top