# How do I change the background color of a text block?

**URL:** <https://integration.keap.com/t/how-do-i-change-the-background-color-of-a-text-block/56418>\
**Category:** Pro and Max\
**Tags:** email-builder, email-design\
**Created:** [November 6, 2018, 4:10am UTC](https://integration.keap.com/t/how-do-i-change-the-background-color-of-a-text-block/56418 "2018-11-06T04:10:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![martinc](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/martinc/32/14_2.png) [@martinc](https://integration.keap.com/u/martinc)\
**Post date:** [March 26, 2019, 8:59pm UTC](https://integration.keap.com/t/how-do-i-change-the-background-color-of-a-text-block/56418/5 "2019-03-26T20:59:33Z")

</div>

Sure, @Matthew_Guevara. The trick is that the code has be XHTML compliant. Here is an example HTML block with a red background: [HTML code not showing in broadcast email - #2 by martinc](https://integration.keap.com/t/html-code-not-showing-in-broadcast-email/55595/2)

And here is an explanation of the XHTML/HTML5 discussion that was causing everyone so much grief. 🙂 [Background html - #10 by martinc](https://integration.keap.com/t/background-html/52402/10)

---

_[View the full topic](https://integration.keap.com/t/how-do-i-change-the-background-color-of-a-text-block/56418)._
