Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Giving an image a title

    Let's say my web site has a button on Page A. When clicked, this button opens Page B which is a html file. In browsers that contain tabs (e.g. FireFox) page_b.html's title will be displayed in the newly opened tab. All okay, so far.

    But suppose I want the button to display an image, rather than a html file (let's say, a screenshot). I can link the button to my_screenshot.gif but is there any way to specify a title for the newly opened tab?

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,509

    Default Re: Giving an image a title

    Not sure why you want to do this or what purpose it will serve.

    You can give the image an Alt tag. If the visitor mouses over the image a tool tip will appear with whatever information you added in the Alt tag.

    Alt tags for images are really important, especially if you want search engines to find the content. A bitmap called A0156.jpg tells a search engine nothing. But if the Alt tag defines image A0156.jpg as Hydrasound Generating Control then a search engine knows what the image is.

  3. #3
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Re: Giving an image a title

    That's worth knowing. I must add some Alt tags to my site.

    Quote Originally Posted by gwpriester View Post
    Not sure why you want to do this or what purpose it will serve.
    At the moment, the tab just seems to pick up an arbitrary title (usually the name of the associated web domain AFAICT). I think it would be better if the tab displayed a meaningful description of what's being displayed. Don't forget, I'm talking about an image such as a screenshot - where the entire image is displayed in a tab or in its own browser instance. I don't mean images that just happen to be on my web page along with other items.

  4. #4
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,509

    Default Re: Giving an image a title

    Don't forget, I'm talking about an image such as a screenshot - where the entire image is displayed in a tab or in its own browser instance.
    I'll try to remember.

  5. #5
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Re: Giving an image a title

    Lol

  6. #6
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Re: Giving an image a title

    What a difference a night's sleep makes! I don't know why I didn't think of this before but I guess the obvious solution is to make a new html page with nothing on it apart from the gif, or jpeg etc. Would that have any disadvantages? e.g. would it need to be tested in lots of different browsers? I'm guessing that a page so simple couldn't possibly go wrong.

    Famous last words??

  7. #7
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Giving an image a title

    Yes.
    John.

  8. #8
    Join Date
    Apr 2009
    Location
    Manchester, UK.
    Posts
    56

    Default Re: Giving an image a title

    Yes, there'll be disadvantages to consider - or yes, it should work?

  9. #9
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Thumbs up Re: Giving an image a title


    Yes, you are right, this is a proper solution.
    Of course it will work. Why shouldn't it?
    John.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •