Opera 6.05 only supports Javascript 1.1 and identifies itself as Internet Explorer 5.0 by default so you will run into major problems there. You need to specifically look for Opera in the indentification string.
The Alt attribute is meant for non-visual browsers and isn't supported by Opera and Mozilla and is only available in Internet Explorer if an option is set. Use the title tag instead.
Center is a deprecated tag as of HTML 4.0 and browsers do not have to support it. Use either the align attribute (also deprecated in XHTML) or CSS to control alignment.
Originally posted by W. Luke The Alt attribute is meant for non-visual browsers and isn't supported by Opera and Mozilla and is only available in Internet Explorer if an option is set.
I'm sure you meant to say that Opera and Mozilla support it correctly and IE doesn't. ;-)
Anyway, the conclusion's the same, David: use the title attribute. Alt isn't for tooltips, it's for a short alternative text representation of what the image is about. Still use the alt attribute for people who can't see the image for whatever reason, but use the title attribute for the pop up tooltip.
Also, I'm guessing you're centering a table in a window with <center>, right? Applying "margin: auto;" on the table, will set you on the straight and narrow in Opera, Mozilla and all forward seeking browsers, but for IE you'll have to set the table's parent to "text-align: center;" and then set the table to the alignment you want.
I've used the alt tag for while W3C vaildator has fits if you don't. title tag doesn't seem that bad. Opera still doesn't show a pop up, who knows.
What I'm centering is a java script menu bar created with Xara Menumaker. I haven't found any options for overall locations or alignments in that program. I'll try setting up a style but that is not 1 of my better abilities.
Originally posted by Ian Glass I'm sure you meant to say that Opera and Mozilla support it correctly and IE doesn't. ;-)
No, I didn't. Each browser can choose which tags and attributes they want to support. Microsoft has chosen to allow people with disabilities to turn that tag on under Accessibility which is exactly what the tag is designed to be used for so I don't see it as being used wrong. You have to explicitly turn the expansion of the attribute on for your computer so why is giving the user an option wrong?
Originally posted by W. Luke Microsoft has chosen to allow people with disabilities to turn that tag on under Accessibility which is exactly what the tag is designed to be used for so I don't see it as being used wrong.
Turn off images, and you'll see that Opera and Mozilla's implementation is quite complete. Instead, IE will clip out the alt text when images are turned off--not very accessible.
Alt as a tooltip (with unreadablely small text, btw) is pointless, since in it's either redundantly telling you what you can already plainly see if you have images on, or forcing you to hover over every image and wait for the tooltip to pop up in order to know what an image is if you have images off. It's not a functional implementation, imho.
Originally posted by David Bethel What I'm centering is a java script menu bar created with Xara Menumaker. I haven't found any options for overall locations or alignments in that program.
Just make sure that your pages'll still work if someone turns off JavaScript in their browser, or like Opera 6, has limited support. :-)
Bookmarks