Wikipedia:Image markup with HTML

In today's article, we are going to explore the fascinating world of Wikipedia:Image markup with HTML. From its origins to its impact on today's society, Wikipedia:Image markup with HTML has been the subject of multiple studies and research. Throughout history, Wikipedia:Image markup with HTML has played a fundamental role in various aspects of human life, from politics to popular culture. In addition, we will delve into the different perspectives that exist on Wikipedia:Image markup with HTML, analyzing its implications in the past, present and future. Without a doubt, Wikipedia:Image markup with HTML is a topic of great relevance that deserves to be explored in depth to better understand its complexity and its influence on our daily lives.


alt text Caption

Right-floating image with caption

<div class="floatright">]

Caption</div>



Column of images, floated

See the 2003 version of Floppy disk for an example.


Markup for images is quite complicated. This may be improved in the future: see meta:image pages. Here are some examples of typical markup ("image" for an image in the page, "media" for just a link):

left float, no caption <div class="floatleft">]</div>
right float, no caption <div class="floatright">]</div>
left float, with caption <div class="floatleft">]<br>Caption</div>
right float, with caption <div class="floatright">]<br>Caption</div>
left float, with larger <div class="floatleft">]<br>]</div>
right float, with larger <div class="floatright">]<br>]</div>
large central picture <center>]<br>''Caption''</center>


If your caption is longer than a few words, you may need to explicitly set the div width. Some browsers adjust the width of the div based on the width of the text, and if there is a large caption, the div may become too large. To solve this problem, simply set the width of the div to the width (in pixels) of the image, like so:

<div class="floatright" style="width: 250px">]<br>''Caption''</div>

(replacing width: 250px; with the correct width of your image. The inclusion of this specification is optional, but recommended if you have a caption longer than a few words. For large amounts of caption text, use text-align:left; to make it left-justified.

Alternate text is optional but recommended. See Alternate text for images for hints on writing good alternate text.

To have some text to the left of an image, and then some more text below the image, then put in a single <br clear="all">. This will force following text down until the margins are free of floating images.

Some recommend using <small> for captions, so they appear like this.

Link to the image description page

If you want to make a link to the description page for an image, use a leading colon before "image:" in an intra-wiki link, like this: ] which yields: STS-32 crew

Blank line after image code

Always put a blank line after the image code to avoid an ugly indentation of the text with Internet Explorer.

See also