<p style="background-color:green; padding: 30px;">Hello</p>

7 Answers 7


Usually you can write that into an HTML file, render it, and copy the email from the browser into Gmail's compose pane.

  • What about <body style="backcolor:red;"></body> ?
    – faressoft
    Dec 4, 2010 at 17:13
  • @faressoft Use Thunderbird in that case.
    – digitxp
    Dec 4, 2010 at 18:17
  • Do you mean insert > HTML ? Noting changed when i put <body style="backcolor:red;"></body> in it !
    – faressoft
    Dec 4, 2010 at 19:56
  • 1
    I doubt any email program would let you do that. It's better to make a <div> and style that. Thought it could also be that you meant bgcolor and not backcolor...
    – digitxp
    Dec 4, 2010 at 20:43
  • +1 This works. To test simply open an email in Gmail itself. Preferably the one which is sent through some email client which has HTML enabled and has images in it. Select it's content. Copy. And paste it into the compose pane. Yes just make sure that you have Rich formatting selected in the compose options as shown by @Nigel
    – IsmailS
    May 24, 2011 at 10:34

Google does not support this feature: (Source)

Please note that Gmail doesn't recognize HTML tags inserted in the body of a message

However, it might be possible with an external 3 party application such as Outlook or ThunderBird.

Outlook 2003 or earlier had option to send HTML via File > Send > Page by Email. However, Microsoft have removed this feature for security reasons in Outlook 2007 and 2010. Here is an article that explains Microsoft's actions. There is a 'grass-roots effort' to get this feature added back Outlook. For more information about his movement visit FixOutlook.org.

  • thank you. Iam using Outlook but I don't know how can I send a html code. How can I do that ?
    – faressoft
    Dec 4, 2010 at 15:57
  • I don't use Outlook anymore so I am not completely sure. I did find this page with 4 methods to HTML emails.
    – SgtOJ
    Dec 4, 2010 at 16:13
  • @SgtOJ, I think your source is outdated.................
    – Pacerier
    Sep 30, 2013 at 5:34

Body is not an acceptable tag in gmail, and most email clients disregard backgrounds unless they're in divs.

There's a great resource on the subject of what email clients support and don't support called the Email Standards Project.

As for entering html in gmail, you're going to have to do the copy paste thing that digitxp said, but don't include the html, head or body tags, just the content tags.


I think you should use a client that lets you write HTML email and set it up to use your gmail account. I don't think you can do it from Gmail's web interface.

Sending HTML email with Outlook express and Thunderbird: http://webdesign.about.com/od/intermediatetutorials/a/aa050800b.htm

Not sure how to directly input HTML in an email using outlook.


You can use ctrlq.org/html-mail/ to send HTML emails.


Gmail does not support HTML natively but it is possible to do so via Chrome extensions.

I love this one: Free HTML Editor for Gmail.


Rich Test Formatting 1

Rich text formatting 2 In gmail web client, the easiest way to click on Rich formatting >> that would open up the formating tools and select whatever formating your want instead of composing it somewhere else and pasting it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.