2022-04-23 12:18:08 -07:00
|
|
|
---
|
|
|
|
|
eleventyNavigation:
|
|
|
|
|
key: UsingImages
|
|
|
|
|
title: Using Images
|
|
|
|
|
parent: Markdown
|
|
|
|
|
order: 60
|
|
|
|
|
---
|
|
|
|
|
|
2022-07-22 00:27:57 -07:00
|
|
|
It is possible to include images into the rendered form of a Markdown file.
|
2022-04-23 12:18:08 -07:00
|
|
|
|
2025-06-14 02:38:21 -07:00
|
|
|
Please refer to the [article on Screenshots](/improving-documentation/screenshots/) to learn how to use and include
|
|
|
|
|
images in the Codeberg documentation.
|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
The syntax of including images is similar to the syntax of links.
|
|
|
|
|
|
|
|
|
|
```shell
|
2022-07-22 00:27:57 -07:00
|
|
|

|
2022-04-23 12:18:08 -07:00
|
|
|
```
|
|
|
|
|
|
2024-06-11 00:51:22 -07:00
|
|
|

|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
The image link consists of three parts:
|
|
|
|
|
|
2022-07-22 00:27:57 -07:00
|
|
|
- The alternative text - is added to the `alt` attribute of the rendered image
|
|
|
|
|
- the link - a URI or URL to an image file, which is then included in the rendered article
|
|
|
|
|
- the title - is added to the `title` attribute of the rendered image (most browsers show it on hover)
|
2022-04-23 12:18:08 -07:00
|
|
|
|
|
|
|
|
## Location of image files
|
|
|
|
|
|
|
|
|
|
Image files can be placed within the folder structure of your article or documentation.
|
2022-07-22 00:27:57 -07:00
|
|
|
Apart from that, images can be referenced by a URL and are thus included from the internet location the URL points to.
|