# Adding custom class to img tag

**URL:** <https://meta.discourse.org/t/adding-custom-class-to-img-tag/21425>\
**Category:** Feature\
**Created:** [22 Outubro , 2014 17:06 UTC](https://meta.discourse.org/t/adding-custom-class-to-img-tag/21425 "2014-10-22T17:06:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)\
**Post date:** [20 Outubro , 2017 13:56 UTC](https://meta.discourse.org/t/adding-custom-class-to-img-tag/21425/6 "2017-10-20T13:56:40Z")

</div>

There is a new MarkDown editor and I think it only allows certain tags and attributes…

`class` may not be one of them and may be stripped.

If you just want a border on all your included images, what’s wrong with:

```plaintext
.cooked img {
    border: go-wild;
}

```

or something similar? But of course, you’ve got to handle the emoji’s.

---

_[View the full topic](https://meta.discourse.org/t/adding-custom-class-to-img-tag/21425)._
