Link pictures titles

Discussion in 'HTML' started by Luigi Donatello Asero, Aug 3, 2006.

  1. Does linking pictures titles to some word/words on the same page or on
    another page in the same website comply with the specification
    requirements for HTML 4.01 strict?

    --
    Luigi Donatello Asero
    https://www.scaiecat-spa-gigi.com/it/svezia.html
    Vad kallar man Sverige på italienska?
    E l´Italia in svedese?
     
    Luigi Donatello Asero, Aug 3, 2006
    #1
    1. Advertising

  2. Luigi Donatello Asero wrote:
    > Does linking pictures titles to some word/words on the same page or on
    > another page in the same website comply with the specification
    > requirements for HTML 4.01 strict?


    You cannot place anchor elements (which are used to create links)
    inside title elements or any attribute value (including title
    attributes).

    Attempts to do so are not valid and do not work, AFAIK, in any browser
    at all.
     
    David Dorward, Aug 3, 2006
    #2
    1. Advertising

  3. Luigi Donatello Asero

    Andy Dingley Guest

    Luigi Donatello Asero wrote:

    > Does linking pictures titles to some word/words on the same page or on
    > another page in the same website comply with the specification
    > requirements for HTML 4.01 strict?


    This is impossible to answer without knowing what a "picture title" is,
    or what "linking" means.

    You could certainly do this:

    <div class="image" >
    <img src="..." alt="Norwegian beaver cheese, stacked in the traditional
    rounds" title="Norwegian beaver cheese" >
    <p class="caption" ><a href="#norwegian_beaver" >Norwegian beaver</a>
    <a href="#cheese" cheese</a></p>
    </div>

    <p id="norwegian_beaver" >A mythical dairy beast of the fjords</p>

    <p id="cheese" >Stuff squirted out of a cow, then left to go solid</p>



    As to whether it's "valid", then you can determine that easily by
    looking at the DTD. Obviously trying to embed a <a> link inside an alt
    attribute is crazy, but then anything is possible on your site.

    Why am I even responding? I _know_ this can't be worthwhile. 8-(
     
    Andy Dingley, Aug 3, 2006
    #3
  4. "David Dorward" <> skrev i meddelandet
    news:...
    > Luigi Donatello Asero wrote:
    > > Does linking pictures titles to some word/words on the same page or on
    > > another page in the same website comply with the specification
    > > requirements for HTML 4.01 strict?

    >
    > You cannot place anchor elements (which are used to create links)
    > inside title elements or any attribute value (including title
    > attributes).
    >
    > Attempts to do so are not valid and do not work, AFAIK, in any browser
    > at all.


    Thank you.

    --
    Luigi Donatello Asero
    https://www.scaiecat-spa-gigi.com/it/svezia.html
    Vad kallar man Sverige på italienska?
    E l´Italia in svedese?
     
    Luigi Donatello Asero, Aug 3, 2006
    #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. Stevie_mac

    Tooltips on datagrid titles

    Stevie_mac, Jul 25, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    463
    Stevie_mac
    Jul 25, 2003
  2. Gilgamesh

    Page titles

    Gilgamesh, Dec 5, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    404
    Steve C. Orr [MVP, MCSD]
    Dec 5, 2003
  3. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    905
    Kevin Spencer
    May 17, 2005
  4. Martin Raychev
    Replies:
    1
    Views:
    294
    Alvin Bruney [MVP]
    Mar 2, 2004
  5. Oli Waters
    Replies:
    2
    Views:
    266
    Andy Baxter
    Jan 12, 2004
Loading...

Share This Page