Alt tag

  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1084
  • Loc: England
  • Status: Offline

Post February 10th, 2008, 12:05 pm

Hi,

I am trying to find a way to show alt tag in phpbb2.

I tried this:

<img src="image.gif" alt="bla" title="bla bla bla"

Obviously with the correct image and discription. It does'nt work. I thought at first it was because it was a free board with restrictions so I installed one on my host to test, no differen t.

Does anyone who uses PHPBB2 know the HTML for alt tag in images please?

I allowed for the test HTML in admin

S
"http://jungaling.com/selamatdatang/"
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 10th, 2008, 12:05 pm

  • snuggles
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 06, 2008
  • Posts: 27
  • Status: Offline

Post February 11th, 2008, 7:47 am

What do you mean?

The alt tag should only be visible if the path to your image is incorrect.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1084
  • Loc: England
  • Status: Offline

Post February 11th, 2008, 9:38 am

What?

lolol do you actually know what an alt is why its used ?

An alt tag is to make the site more accessable to the part sighted, the blind, screen readers etc. Its shows when the image is moused over silly its a discription.

Anyway you learn something even if you can't answer the question lolol

As for my paths being wrong I know the right paths I have tried are certainly not wrong.

S
"http://jungaling.com/selamatdatang/"
  • snuggles
  • Novice
  • Novice
  • No Avatar
  • Joined: Feb 06, 2008
  • Posts: 27
  • Status: Offline

Post February 11th, 2008, 10:57 am

Yes I understand what the alt attribute is used for which is why I am confused you appear to think it is a tooltip.

http://en.wikipedia.org/wiki/Alt_attribute
  • celandine
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Oct 30, 2007
  • Posts: 1982
  • Loc: Belgrade, Serbia
  • Status: Offline

Post February 11th, 2008, 2:45 pm

I vote for snuggles on this one. The 'alt' text does in some browsers show up as a tooltip, but it isn't really meant to do that. It's meant to show only if the image cannot be displayed for some reason, like snuggles said.....

suzie, I'd humbly suggest not laughing at people so quickly...... even if you had been right it still wouldn't have been very nice, 'lolol' and all.
Eagles may soar in the sky but weasels don't get sucked into jet engines.

celandine designblog
  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5483
  • Loc: Rochester, NY
  • Status: Online

Post February 11th, 2008, 6:58 pm

IE is the only browser that implements the "tooltip" effect for alt tags. It is not the correct/intended behavior.
W3Schools wrote:
If you use the alt attribute in Firefox on images and image maps the text will not show on mouse-over as in other browsers.

Firefox uses the alt attribute the way it's meant to be used, like an alternative text if the image won't load, not as a mouse-over text.

Firefox does support mouse-over comments on images or image maps if you use a title attribute in the <img> tag.

http://w3schools.com/tags/tag_img.asp
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!

Post February 12th, 2008, 2:47 am

spork wrote:
IE is the only browser that implements the "tooltip" effect for alt tags. It is not the correct/intended behavior.


Spork is correct. The alt attribute for images is "Alternate". It's meant for browsers that can't display the image (usually for visually impaired users) or if the image can't be loaded. It's not a tooltip and the only browser it shows up as a tooltip in is IE (which is incorrect).
  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11879
  • Loc: Clearwater, FL
  • Status: Offline

Post February 12th, 2008, 4:06 am

Quote:
Does anyone who uses PHPBB2 know the HTML for alt tag in images please?

I allowed for the test HTML in admin


Suzie, I'm a little confused where you want to do this.

Initially I thought you were targeting a specific place in a template, or maybe you wanted to be able to add an alt/title attribute when using bbcode to post images.

That last line makes me wonder if you've got HTML enabled for administrator posts, and you want it to allow you to include the attribute(s) when you post a HTML-based image as an administrator. Is this correct ?
  • kbergmann
  • Expert
  • Expert
  • User avatar
  • Joined: Dec 04, 2007
  • Posts: 660
  • Loc: USA
  • Status: Offline

Post February 12th, 2008, 1:42 pm

Suzie,

Some java script would produce this on a site, not sure about a what you want it for ... I would suggest using FF to test code and not IE as it conforms to the standard much better ... IE does what it wants ...

Post February 12th, 2008, 1:45 pm

kbergmann wrote:
I would suggest using FF to test code and not IE as it conforms to the standard much better ... IE does what it wants ...


Wrong. It's a Brown Eyed Girl. You should write standard conformant code and test in all browsers.
- dM
  • kbergmann
  • Expert
  • Expert
  • User avatar
  • Joined: Dec 04, 2007
  • Posts: 660
  • Loc: USA
  • Status: Offline

Post February 12th, 2008, 1:49 pm

I test in FF / Opera first, then deal with IE7 and IE6 ... I do test in all but until the framework is done in FF I strictly do FF testing. I have found FF and Opera are fairly consistent, then I have bugs to work out with the IE's.

Post February 12th, 2008, 2:13 pm

I'm sure you're method is valid and good, but I find that completely illogical considering the market share/audience.
- dM
  • zaiah
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Dec 15, 2007
  • Posts: 362
  • Status: Offline

Post February 12th, 2008, 2:29 pm

digitalMedia wrote:
I'm sure you're method is valid and good, but I find that completely illogical considering the market share/audience.


Are you saying this because most (too many if you ask me) people use IE? Okay I'm a newbie and I test in IE first, then FF, Opera, Safari and Netscape :)

I guess my real question is why would someone be so concerned with ALT tags on a message board? And will the administrator be the only person able to add them? Just curious. I haven't done a message board yet. That is next on my list of things to do before I die. Right under Halle Berry :) After she has her baby of course. Not a fan of pregos :) Unless I'm the father. LOL
  • kbergmann
  • Expert
  • Expert
  • User avatar
  • Joined: Dec 04, 2007
  • Posts: 660
  • Loc: USA
  • Status: Offline

Post February 12th, 2008, 2:38 pm

digitalMedia wrote:
I'm sure you're method is valid and good, but I find that completely illogical considering the market share/audience.


I can see testing from multiple angles and for me I have better luck designing for FF first then IE as it requires less tweaking in my experiences than designing for IE then FF. Granted clean code shows the same or nearly the same in all browsers, it helps me to design for a browser that reads a more standard CSS. I might be completely wrong in my approach but I have noticed if I make something work for IE6 it won't always work for IE7, FF, or Opera and requires more work on my end.

Let's agree to disagree, shall we?

Post February 12th, 2008, 2:44 pm

Right on, kbergmann.

zaiah:
Yes, I'm saying you should regard your audience first.

I don't have problems with incompatable markup between browsers. I don't have problems writing standard conformant markup. To be honest, it kind of baffles me that so many people have trouble with this.

The primary use of the ALT attribute is for an incorrect image URI. However, having that info appear as a tool tip isn't incorrect if it performs it's primary function as well. Also, it does perform other ancillary functions for non-visual user agents. I think we should all just get over it.

suze:
Are you generating your ALT attributes in PHP? If so, are you sure you're not using full quotes in your code?
- dM
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 12th, 2008, 2:44 pm

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: PolishHurricane and 127 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.