Solved

In html is there a ez way to link to a link ?

Posted on 2011-02-13
3
359 Views
Last Modified: 2012-05-11
I have links under subjects
new hire
access forms
admin stuff.

Now I want to make a new subject, top used links.  
favorite link
2nd favorte line
3rd favoite link

Now I do not want multiple places to update if there is a change.  I would like to link the "top used links" to the link in the subjects below.


this is just a run of the mill html page on my local computer.  I dislike the use of favorites links in my browser, really prefer a local html page stating the link, who is in charge of it, the rulles of using the link etc.   I am in a very large complex place :)

0
Comment
Question by:TIMFOX123
3 Comments
 
LVL 20

Expert Comment

by:thehagman
ID: 34882982
Maybe you want to link to an anchor on the same page as follows
<html>
<head><title>Link collection</title></head>
<body>
<h1>Link Collection</h1>
<ul>
<li><a href="#first">first section</a></li>
<li><a href="#second">second section</a></li>
<li><a href="#third">third section</a></li>
</ul>
<h2><a name="first" /> First Section</h2>
<ul>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
</ul>
<h2><a name="second" /> Second Section</h2>
<ul>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
</ul>
<h2><a name="third" /> Third Section</h2>
<ul>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
<li><a href="...">Whatever</a></li>
</ul>

</body>
</html>

Open in new window

0
 
LVL 12

Accepted Solution

by:
Amick earned 500 total points
ID: 34883003
Yes, if I correctly understand what you're trying to do, you can use an id for each, like this (assuming that you're using a list,  but it could be in any element or page)

<ul>
      <li id="fav1"> <a href="http://www.careers.com">new hire</a> </li>
      <li id="fav2"> <a href="http://office.microsoft.com/en-us/access">access forms</a></li>
      <li id="fav3"> <a href="http://admin.com">admin stuff.</a></li>
</ul>

In the favorites page, link to it using code that references the page and id, like this:
This week's favorites:
<ol>
<li><a href="original.html#fav1">Favorite 1</a></li>
<li><a href="original.html#fav2">Favorite 2</a></li>
<li><a href="original.html#fav3">Favorite 3</a></li>
</ol>
0
 

Author Closing Comment

by:TIMFOX123
ID: 34883290
this does it !!
thx
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question