Callysto.ca Banner

Open in Callysto

Including Images

An image is included using the Markdown language, or by using HTML code within Markdown.

The image will “live” as an time that is loaded into a Markdown cell. The Markdown syntax to insert an image is straightforward: start with an exclamation point, then include text and file names in square and curved brackets:

![Any text here](yourImage.jpg)

The name of your local image file goes in the curved brackets. The text in the square brackets is loaded only if the computer can’t find the image file.

This is useful for when you are loading in an image from the internet – the link might fail, so you can have some text instead.

When you need more control over the image display, you can use HTML syntax. For instance, to control the width of the displayed image, use the following in your Markdown cell:

<img src="yourImage.jpg" alt="Alternate text" width="200"/>

Look at the following examples to illustrate the ideas.

Example 1

Here is a local PNG file displayed. The code is

![Callysto Logo](CallystoLogo.png)

Callysto Logo

Example 2

Here is a remote PNG file displayed, loaded in from the internet. The code is

![Image of Yaktocat](https://octodex.github.com/images/yaktocat.png)

Image of Yaktocat

Example 3

Here is a local PNG file displayed, in HTML syntax. Here, we can control the width of the displayed image. The code is

<img src="CallystoLogo.png" alt="drawing" width="200"/>
drawing

Example 4

Finally, here we load in a remote PNG file for display, in HTML syntax. Here, we can control the width of the displayed image. The code is

<img src="https://octodex.github.com/images/yaktocat.png" alt="drawing" width="200"/>
drawing

Callysto.ca License