Talk:Alt attribute

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Good articleAlt attribute has been listed as one of the Engineering and technology good articles under the good article criteria. If you can improve it further, please do so. If it no longer meets these criteria, you can reassess it.
Article milestones
DateProcessResult
October 16, 2022Good article nomineeListed
Did You Know
A fact from this article appeared on Wikipedia's Main Page in the "Did you know?" column on November 1, 2022.
The text of the entry was: Did you know ... that organizations have been successfully sued for not using the alt attribute correctly on their websites?

Duplicate page[edit]

There is another page with content similar to this article: Alt text

Alan Pascoe 22:33, 4 December 2005 (UTC)[reply]

Appears to have been merged now. ([1], [2]) --DocumentN 20:23, 29 September 2007 (UTC)[reply]

Empty alt attributes[edit]

The most recent change:

once again, purely decorative images outside of CSS are inappropriate, so whether or not empty alt is appropriate for them is irrelevant

Given that the use of decorative images in HTML is very widespread, it is by no means "irrelevant" to discuss what the appropriate alt attribute value is for them. And no, CSS isn't powerful enough to replace all use of decorative images yet, so don't suggest that.

Consider this: an illustration to accompany a paragraph of text is desired. This illustration is not required to understand the topic at hand. The paragraph already has a background image. The illustration must affect the line boxes so that the text remains legible and the illustration is not obscured.

This is an extremely common design pattern in web design, and it's impossible to achieve with pure CSS alone. No, generated content is not an option, it doesn't work in Internet Explorer, and even if it did, you can't generate more than one box with it, so you are screwed if you are already using generated content for something.

I'm putting the text about decorative images back in. It should remain in until such a time as CSS is powerful enough to generate boxes of its own accord, and even then it's not a slam-dunk.

--Bogtha


Can we pleeeease have a better example?[edit]

"In the sky flies a red flag with a white cross whose vertical bar is shifted toward the flagpole."

This really bad! And I have pointed that out before....

  1. Is the main subject of this picture the sky? No. Then forget it. Begin the description with "A flag....."
  2. What sort of cross is this? A seeing person with a little general knowledge may realise that a cross might be smaller than the flag itself (like that on the flag of Switzerland) or it might be diagonal (like that on the flag of Scotland). Describe the cross. " A red flies from a flagstaff. It is red, divided vertically and horizontally by a white cross...."
  3. For the umpteenth time, the cross is not an animate being and is not referred to as who. ".... the vertical of which is shifted ....."
  4. Where is it shifted? Flags have a front and back, a top and bottom, a left and right. Provided the flag is depicted the correct way around, (and it is) then it is simpler to say "...to the left" than " towards the flagpole."

That gives us: "A flag flies from a flagstaff. It is red, divided vertically and horizontally by a white cross, the vertical of which is shifted to the left."

Could somebody change this or choose a different example. Amandajm (talk) 13:27, 20 May 2010 (UTC)[reply]

Is there some reason you don't do this yourself? 173.56.145.119 (talk) 05:46, 29 May 2010 (UTC)[reply]

This is not a tutorial[edit]

This reads very much like a tutorial that lacks thoroughness. Content should not be explained through examples, but rather through common terminology reinforced by examples. Nor should it be prescriptive of good HTML style (which, by the way, isn't a misconception because it's not a matter of fact; it's a matter of style).Spezied (talk) 17:20, 23 March 2012 (UTC)[reply]

SearchEngineJournal.com[edit]

@Aoidh: Is the Search Engine Journal reliable? I've seen it criticized in The Signpost for this article, and it doesn't seem to be na actual journal. — VORTEX3427 (Talk!) 04:38, 17 October 2022 (UTC)[reply]

@Vortex3427: I think it is for this, because the specific reference cited on this article is not written by a contributor but by one of their staff members, and they themselves are in turn citing John Mueller who would be reliable for statements about how Google's search engine works. The video embedded in the reference confirms what the SEJ reference is saying so I think it's reliable in this instance in that it provides evidence for what its saying i.e., Mueller's statements. - Aoidh (talk) 08:14, 17 October 2022 (UTC)[reply]