Solved

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

Posted on 2011-02-13
3
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

623 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