Talk:HTML element
I removed the Wikipedia logo image example under the Images section for a few reasons.
First, it is a somewhat confusing example - being an image linking to a document with seemingly the same name as the image (the image description page), a fact which must be qualified, at the cost of making the example harder to understand.
Second, because the formatting is ugly (an inline image that disrupts text flow) and I couldn't think of a way to make it non-ugly; I thought about putting it in a floating div
as a sort of factoid, but with monospaced text to show code, it would most likely run off the edge. Related to this is the fact that it disrupts the flow of term/definition that is now used throughout the article. There may be a way to make it fit within the definition of the img
element, but it's not really part of the definition.
Third, because I couldn't really see what the example was intended to illustrate. If the goal is to show the difference between the title
and alt
attributes, it doesn't work, since "alt text" specified in a Wikicode image (i.e., [[Image:Wiki.png|Some text]]
) is not actually alt
text, but title
text, making the immediately preceding snippet of code incorrect. According to the example code, <img src="http://en.wikipedia.org/upload/b/bc/Wiki.png" title="example of an image" alt="Wikipedia logo">
, one would expect the tooltip text to be "example of an image", when it's actually "Wikipedia logo". If the goal of the example is to show when an image is or isn't a link, it doesn't work for that either; it's stated that this code generates no link--strictly speaking, if that code were used alone, no link would be generated--but that code isn't used; instead, the image wikicode is used, which always generates a link.
Finally, whether the example is for illustrating image linkage, tooltip text, or whatever, it only peripherally has anything to do with understanding the img
element. I don't think this example should be here at all. Comments? -- Wapcaplet 17:39, 9 Sep 2004 (UTC)