Results 1 to 8 of 8

Thread: Adding text to image,confirmation required

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Adding text to image,confirmation required

    I would like to add some text for the images on my site & place it into my code for search engines purposes

    A section of my code at the moment is as follows.
    <img src="fiat/flip-remote-3button.png" width="150" height="52" class="imgshadow" /></a>

    If i add the following
    alt="IMAGE DESCRIPTION HERE"

    Is this then correct,so i can continue.
    <img src="fiat/flip-remote-3button.png" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" /></a>

    Just looking for confirmation,many thanks
    Last edited by theremotedr; 10-10-2013 at 01:09 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, that's how to do it. You should not have </a> at the end there unless the image is linked.

    Like the other attributes of tags, it can go anywhere within the (opening*) tag.

    In older IE, the alt attribute is treated as a title attribute when no title is present. Other browsers will not do this. You should decide if you also want this information as a title. Titles appear as tool tips on hover of the image. If not, add a blank title:

    Code:
    <img src="fiat/flip-remote-3button.png" title="" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
    If you do want it as a tool tip in all browsers, make it the same as the alt:

    Code:
    <img src="fiat/flip-remote-3button.png" title="IMAGE DESCRIPTION HERE" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
    Or you can make it something different:

    Code:
    <img src="fiat/flip-remote-3button.png" title="Some other text" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
    All browsers will show/not show a tool tip under these conditions.

    Or, you can ignore older IE by using no title at all, and let it show that alt as a tool tip. Less typing.



    * img is a self closing tag, so has only an opening section
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Yes, the alt attribute offers an alternative text for screen reader/those with images turned off and gives meaning/worth/value to search engines. I try to make my image filenames keyword-rich and the alt attribute equally so but slightly more verbally descriptive. If you get a few good keywords in both the filename and alt, they have more chance o coming up in google image searches too.

    Here's and article that you might find interesting: http://sixrevisions.com/content-stra...images-videos/

    And also, optimise, optimise, optimise!

    DD has a good online optimiser tool: http://tools.dynamicdrive.com/imageoptimizer/

    For offline and batch compression, I like PNGGauntlet (free): http://pnggauntlet.com/ and Shrink-O-Matic (free): http://toki-woki.net/p/Shrink-O-Matic/ at about 70% quality for jpeg

    I've heard that RIOT (free) is also good for jpegs: http://luci.criosweb.ro/riot/ although I haven't personally used it.

    I tend to opt for Adobe Fireworks when it comes to jpeg - it isn't free but it seems to beat all the jpeg optimisation tools (that I've tried) hands down.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #4
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Basically i do not wish to see any text when you hoover over an image,so by using the following code will cover me for IE chrome & Firefox etc ?

    <img src="fiat/flip-remote-3button.png" title="" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />

    I thought the alt option was that search engines would crawl my site and display in the search results etc as with no alt nothing would be recovered.
    All my photos are not dsc123456.jpg etc but a description of the item like hondacivickey.jpg
    So i think thats covered correctly.
    I was thinking of using the alt option so when people type in say google honda civic key it would also collect from photo.
    If you then look through the list of results returned by google and click on my photo you then have the option where it reads something like go to this site.

    Have i got the understanding of the alt correct ?

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Well the alt attribute text is more for screen readers and something to be visible if images are turned off. They'll show up in Google image search results too but that's more of a happy side effect from the evolution of new algorithms and search behaviour - it isn't the original function, which is to enhance user experience. It does help though. I *believe* that greater weight is placed on file names as keyword/search terms used there form part of the image URLs so there is a stronger relationship with the resource than what is covered in HTML markup.

    Here are Google's own recommendations relating to images : https://support.google.com/webmaster...r/114016?hl=en
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  6. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    ok good.
    So at the top of each page i have put the name of the page in the title tags.
    This is also good for search engines ?

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    The title tag becomes the clickable link in search results so aim to make it enticing to folks browsing the web. You need to reach a happy medium with regard to tailoring it to include keywords, while keeping it descriptive and inviting for human visitors.

    I would love to chat more about this area as its something that I find really interesting (and its a big part of my employment) but today is my boyf's birthday and I have to dash now and take him cake!
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. #8
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    No problem,thanks for the input.

Similar Threads

  1. Vertical scrolling text required
    By theremotedr in forum HTML
    Replies: 7
    Last Post: 07-08-2012, 04:51 AM
  2. Text and Image Crawler v1.5 - Adding More Spaces
    By NeedAMentor in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 01-29-2012, 04:28 AM
  3. Adding delay in Text and Image Crawler
    By johnfb in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 08-11-2010, 09:11 AM
  4. Adding a confirmation email?
    By Bengal313 in forum PHP
    Replies: 2
    Last Post: 08-05-2010, 06:53 PM
  5. Urgent help required on adding a table to a tabcontent
    By dduser1 in forum Looking for such a script or service
    Replies: 0
    Last Post: 10-30-2008, 01:43 PM

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
  •