Solved

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

Posted on 2011-02-13
3
354 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now