How to Use HTML Code in Gmail

Ever wished you could add a bit more flair to your Gmail messages? While Gmail doesn't support HTML code directly in its compose window, you can still use it to create stylish and engaging emails. Here's how to harness the power of HTML in Gmail.

How to Embed a Custom HTML Email in Gmail
How to Embed a Custom HTML Email in Gmail

Before we dive in, remember that not all email clients support HTML. While Gmail does, some recipients might not see your formatting correctly. Always test your emails to ensure they look good on all platforms.

a screen shot of a web page with the words'html input types '
a screen shot of a web page with the words'html input types '

Understanding Gmail's HTML Support

Gmail supports a range of HTML tags, including those for styling text, creating lists, and adding links. However, it doesn't support all CSS styles or JavaScript. To keep it simple, stick to basic HTML tags and inline styles.

a red and black text description for a web page with an arrow pointing to it
a red and black text description for a web page with an arrow pointing to it

Here are some HTML tags Gmail supports:

  • Text styling: <b>, <strong>, <em>, <u>, <del>, <ins>
  • Lists: <ul>, <ol>, <li>
  • Links: <a>
  • Tables: <table>, <tr>, <td>
Coding a Stylish Blog Design Layout in HTML & CSS
Coding a Stylish Blog Design Layout in HTML & CSS

Styling Text with HTML

You can make your text bold, italic, underlined, or crossed out using HTML tags. For example:

<strong>This text is bold</strong> produces This text is bold

how to use google mail the basics
how to use google mail the basics

<em>This text is italic</em> produces This text is italic

Creating Lists with HTML

HTML allows you to create unordered (bulleted) and ordered (numbered) lists. Here's how:

html and css login form
html and css login form

<ul><li>Item 1</li><li>Item 2</li></ul> produces

  • Item 1
  • Item 2
a table with several different types of text and numbers on the top, bottom left corner
a table with several different types of text and numbers on the top, bottom left corner
HTML cheat sheet
HTML cheat sheet
How to Code a Hyperlink in HTML (it's easier than you think!)
How to Code a Hyperlink in HTML (it's easier than you think!)
a poster with some text on it and an image of a computer coder in the background
a poster with some text on it and an image of a computer coder in the background
making html easy for you guysss
making html easy for you guysss
the email list for an email account
the email list for an email account
an info sheet with the text organize your inbox with email labels
an info sheet with the text organize your inbox with email labels
HTML Mails in Gmail
HTML Mails in Gmail
html css download button animation
html css download button animation
an image of a computer screen with the text app script highlighted in red and green
an image of a computer screen with the text app script highlighted in red and green
How to Create Unlimited Email Accounts: Gmail Tip 2026
How to Create Unlimited Email Accounts: Gmail Tip 2026
the text reads,'email has 4 billion active users globally but only a few know how to use the platform effectively here are 8 email hacks that you shouldn '
the text reads,'email has 4 billion active users globally but only a few know how to use the platform effectively here are 8 email hacks that you shouldn '
Gmail Hack for Unlimmited Email Addresses! (no new accounts required)
Gmail Hack for Unlimmited Email Addresses! (no new accounts required)
How to Use Gmail With Your Custom Domain (Coupon Code Included!)
How to Use Gmail With Your Custom Domain (Coupon Code Included!)
an open notebook with some type of text written in red and black on the page
an open notebook with some type of text written in red and black on the page
HTML input types
HTML input types
Coding a Stylish Blog Design Layout in HTML & CSS
Coding a Stylish Blog Design Layout in HTML & CSS
How to delete all mail at once on Gmail: A complete guide for 2026
How to delete all mail at once on Gmail: A complete guide for 2026

<ol><li>Item 1</li><li>Item 2</li></ol> produces

  1. Item 1
  2. Item 2

Using HTML in Gmail

Now that you understand the basics, let's see how to use HTML in Gmail.

Gmail doesn't have a built-in HTML editor, so you'll need to use the 'Edit as HTML' option. Here's how:

Switching to HTML Mode

1. Click on the three vertical dots (⋮) in the bottom right corner of the compose window.

2. Select 'Edit as HTML'.

Writing Your HTML

Once in HTML mode, you can write or paste your HTML code. Here's an example:

<p><strong>This is a test email with HTML</strong>. It has a <strong>bold</strong> sentence and a <ul><li>bulleted</li><li>list</li></ul>.</p>

When you switch back to 'Compose' mode, you'll see:

This is a test email with HTML. It has a bold sentence and a

  • bulleted
  • list

Remember to test your emails to ensure they display correctly. You can use tools like Litmus or Email on Acid for this.

Using HTML in Gmail can help you create more engaging and professional-looking emails. Whether you're sending newsletters, updating clients, or just want to make your messages stand out, HTML can help you do that. So go ahead, experiment, and have fun!

Related Articles

How To Add Web Signature In Gmail App Free Email Newsletter Templates Word Create Html Email Signature For Free How To Create A Mail Signature On Mac Free Apple Email Signature Generator How To Add Email Signature In Gmail On Android Free Editable Email Newsletter Templates What Templates Are Available In Pages How To Create Email Signature In Gmail On Phone How To Add Email Signature In Gmail On Iphone