# How to use variable in img tag

**URL:** https://meta.discourse.org/t/how-to-use-variable-in-img-tag/312109
**Category:** Support
**Created:** [June 14, 2024, 3:06pm UTC](https://meta.discourse.org/t/how-to-use-variable-in-img-tag/312109 "2024-06-14T15:06:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![parcle\_games](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parcle_games/32/388033_2.png) [@parcle\_games](https://meta.discourse.org/u/parcle_games)
#### Post date: [June 14, 2024, 3:06pm UTC](https://meta.discourse.org/t/how-to-use-variable-in-img-tag/312109/1 "2024-06-14T15:06:14Z")

</div>

With markdown it’s possible to set a variable for a image down your post but I will set a image in the list with an html tag what it makes impossible to use the variable as in markdown is there anyway to do this with html like the src tag but how can I do this so

```plaintext
Markdown 

[Img|110X30][image]

[Image]: upload://fPsqxU9EibDHP7QAvDw1esJIj3i.png

```

So how can I arcieveve this in html

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [June 14, 2024, 3:46pm UTC](https://meta.discourse.org/t/how-to-use-variable-in-img-tag/312109/2 "2024-06-14T15:46:50Z")

</div>

You can’t reference an image with a variable like this in HTML, it’s a markdown specific feature.
