Content deleted Content added
major cleanup |
→Images: restore informative example, demonstrates hoverbox, etc |
||
Line 196:
;<code><img...></code> (<code><img... /></code> in XHTML)
:Includes an [[image]] with the <code>src</code> attribute, the required <code>alt</code> provides alternative text in case the image cannot be displayed. Alt is intended as alternative text, although many browsers render it as a [[tooltip]]; the <code>title</code> attribute is intended for specifying tooltip text. See [[#links and anchors]] above.
Example:
<nowiki><img src="http://en.wikipedia.org/upload/b/bc/Wiki.png" title="example of an image" alt="Wikipedia logo"></nowiki>
gives the image [[Image:Wiki.png|Wikipedia logo]] with the same tooltip (hover box), but not with the link, while
<nowiki><a href="http://en.wikipedia.org/wiki/Image:Wiki.png" title="Wikipedia logo"><img src="http://en.wikipedia.org/upload/b/bc/Wiki.png" alt=
"Wikipedia logo" /></a></nowiki>
also produces the link. Note that the name of the link target in this example is somewhat confusing: it is not an image but a webpage.
In addition the image becomes a link, if the element "img" is put at the position of a link label, see [[#links and anchors]] above.
===Others===
|