Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Do you have to use HTML tables in order to create an HTML email?

I found a course on responsive HTML emails on treehouse - in the course, the teacher uses tables to lay out the content. I understand that mail clients strip the head, body, style tags - which also means you can't use an external stylesheet or even embed the styling in the head tag - so you're only left with inline styling.

However, I created my html email with an external stylesheet. Then, when I was ready, created a style tag in the head, copied my CSS into the HTML, then I found something online from MailChimp that allows you to copy and paste your markup into complier and it spits out all your styles as inline. Then I deleted all the necessary tags myself.

I found this way easier than using tables. Is this considered bad practise?


1 Answer

Rafael Ferreira
Rafael Ferreira
13,086 Points

Not an expert, but what I've heard is that you don't necessarily need to use tables, but most people still do, due the fact there is so many email clients out there and some of them don't support anything else but tables, or is easier that way.

Check out this episode of the Shop Talk Show

Hope it helps!