Linking all the entries in a list

Discussion in 'HTML' started by Vivek, Aug 3, 2007.

  1. Vivek

    Vivek Guest

    Hi,

    Is it possible to link all the entries in a list to different html
    pages.
    For example,

    Food
    Fruit
    Apple
    Grapes
    Banana
    Vegetable

    In the above list, I can link "Apple " to a html file by using "A
    ref". But, if I do the same for "Fruit", the link disappears.
    Is something like this is possible or not?

    Thnaks,
    Vivek
    Vivek, Aug 3, 2007
    #1
    1. Advertising

  2. Vivek

    Ed Mullen Guest

    Vivek wrote:
    > Hi,
    >
    > Is it possible to link all the entries in a list to different html
    > pages.
    > For example,
    >
    > Food
    > Fruit
    > Apple
    > Grapes
    > Banana
    > Vegetable
    >
    > In the above list, I can link "Apple " to a html file by using "A
    > ref". But, if I do the same for "Fruit", the link disappears.
    > Is something like this is possible or not?
    >
    > Thnaks,
    > Vivek
    >


    It is certainly possible and very straightforward. Post a link to the
    page so we can see the code.

    --
    Ed Mullen
    http://edmullen.net
    http://mozilla.edmullen.net
    http://abington.edmullen.net
    If man evolved from apes why do we still have apes?
    Ed Mullen, Aug 3, 2007
    #2
    1. Advertising

  3. Vivek

    Vivek Guest

    On Aug 3, 11:42 am, Ed Mullen <> wrote:
    > Vivek wrote:
    > > Hi,

    >
    > > Is it possible to link all the entries in a list to different html
    > > pages.
    > > For example,

    >
    > > Food
    > > Fruit
    > > Apple
    > > Grapes
    > > Banana
    > > Vegetable

    >
    > > In the above list, I can link "Apple " to a html file by using "A
    > > ref". But, if I do the same for "Fruit", the link disappears.
    > > Is something like this is possible or not?

    >
    > > Thnaks,
    > > Vivek

    >
    > It is certainly possible and very straightforward. Post a link to the
    > page so we can see the code.
    >
    > --
    > Ed Mullenhttp://edmullen.nethttp://mozilla.edmullen.nethttp://abington.edmullen.net
    > If man evolved from apes why do we still have apes?


    I have copied the code below.
    I want to link the "Memory" to a html page and also it should continue
    to be a list. The moment I enter " <A href = "index.html"> Memory </
    a>" the Memory text disappears.

    CODE --

    <body>

    <ul id="2" class="none">
    &nbsp;<br>
    &nbsp;
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 11pt; font-weight: 700"><a
    href="product_new.html">Products</a></span></font></li>
    <li>
    <span style="font-size: 8pt; font-weight: 700">&nbsp;&nbsp;Memory</
    a></span>
    <ul id="2" class="none">
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 8pt; font-weight: 700">&nbsp;&nbsp;TSMC</
    span></font>
    <ul class="none">
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 8pt; font-weight: 700">&nbsp;&nbsp;
    45</a></span></font>
    <ul class="none">
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 8pt; font-weight:
    700">&nbsp;&nbsp;GS</a></span></font>
    <ul class="none">
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 8pt; font-weight:
    700">&nbsp;&nbsp;<a href="TSMC_Memory_45nm_SRAM.html">SRAM </a></
    span></font>
    </li>
    <li><font face="Arial" color="#0074C1">
    <span style="font-size: 8pt; font-weight:
    700">&nbsp;<a href="TSMC_Memory_45nm_ULL.html">&nbsp;Ultra Low
    Leakage</a></span></font>
    </li>
    </ul>
    </li>
    </ul>
    </li>
    </ul>
    </li>
    </ul>
    </li>
    </ul>
    </body>
    Vivek, Aug 3, 2007
    #3
  4. Vivek

    John Hosking Guest

    Vivek wrote:
    > On Aug 3, 11:42 am, Ed Mullen <> wrote:
    >> Vivek wrote:
    >>> Is it possible to link all the entries in a list to different html
    >>> pages.
    >>> For example,
    >>> Food
    >>> Fruit
    >>> Apple
    >>> Grapes
    >>> Banana
    >>> Vegetable


    >> It is certainly possible and very straightforward. Post a link to the
    >> page so we can see the code.


    [Ed Mullen's sig snipped for Vivek]
    >
    > I have copied the code below.


    Ed asked for a link to your page, that is, a URL. Nobody wants to see
    pasted in code.

    > I want to link the "Memory" to a html page and also it should continue
    > to be a list. The moment I enter " <A href = "index.html"> Memory </
    > a>" the Memory text disappears.
    >
    > CODE --
    >

    [mostly snipped, but...]

    > <body>
    >
    > <ul id="2" class="none">
    > &nbsp;<br>
    > &nbsp;
    > <li><font face="Arial" color="#0074C1">
    > <span style="font-size: 11pt; font-weight: 700"><a
    > href="product_new.html">Products</a></span></font></li>
    > <li>
    > <span style="font-size: 8pt; font-weight: 700">&nbsp;&nbsp;Memory</
    > a></span>


    Even ignoring all the styling spans and &nbsp;-spacing, your code is
    faulty. You have link-closing tags without matching link-opening tags.

    Based on your original example, I have worked up some code for you.
    Replace the foods with memory cards and (after validating) try that.

    <ul>
    <li><a href="">Food</a></li>
    <li>
    <ul>
    <li><a href="">Fruit</a></li>
    <li>
    <ul>
    <li><a href="">Apple</a></li>
    <li><a href="">Grapes</a></li>
    <li><a href="">Banana</a></li>
    </ul>
    </li>
    </ul>
    </li>
    </ul>

    GL.

    --
    John
    Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
    John Hosking, Aug 3, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick Ng Chi Wah
    Replies:
    2
    Views:
    330
    Ed Morton
    Jul 29, 2003
  2. flebber
    Replies:
    5
    Views:
    287
  3. Don Bruder
    Replies:
    3
    Views:
    949
    spikeysnack
    Aug 3, 2010
  4. Stefan Schwarzer

    Re: yield all entries of an iterable

    Stefan Schwarzer, Oct 24, 2010, in forum: Python
    Replies:
    3
    Views:
    240
    Cameron Simpson
    Oct 25, 2010
  5. Stryder
    Replies:
    14
    Views:
    465
    Arne Vajhøj
    Dec 10, 2012
Loading...

Share This Page