navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Creating an HTML Email Newsletter

Creating an HTML Email Newsletter

with Tim Slavin

 


In this course, author Tim Slavin shows how to design and code an HTML email newsletter, including setting the final dimensions and color palette, placing images and copy in the code structures of the file, and defining the newsletter's parameters with tables within tables. The course demonstrates each step of building an HTML newsletter, up to testing and sending the email.
Topics include:
  • Adjusting margins and padding in the code
  • Setting the look for headers and footers
  • Testing the code with tools like BrowserLab
  • Building a TXT equivalent of an HTML email for simple email readers

show more

author
Tim Slavin
subject
Business, Online Marketing, Email Marketing
level
Appropriate for all
duration
55m 25s
released
Dec 07, 2011

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:04Hi! I'm Tim Slavin, and welcome to Creating HTML Email and Newsletters.
00:09In this course we'll build an HTML email that looks just like this.
00:13At the top is a header area where you can include a link to any Web version of your email.
00:19We then have a border that is a background image, we have a logo, we have a copy
00:25area with a heading, subheading, and a copy block with different styles.
00:30Underneath that is a photograph and below that are the Address information,
00:35Copyright, and Facebook information.
00:38Finally at the very bottom is an area where you can add your Unsubscribe link.
00:44By watching this course you'll learn how to build almost any HTML email and I
00:49hope you'll find it valuable.
Collapse this transcript
Using the exercise files
00:00If you are a premium member of the lynda.com Online Training Library or if
00:06you're watching this tutorial on a DVD- ROM you have access to the exercise files
00:11used throughout this title.
00:13We have all of the project files that we use to create an email invitation.
00:19This includes all the images and then all the preparation files we use to create our email.
Collapse this transcript
What you need to know
00:00Coding HTML email is not terribly difficult to learn.
00:04Let's talk about what skills you will need to get started.
00:07First you'll need to know basic HTML.
00:11This includes how to create links and how to make text bold or italics.
00:16You'll also need to know how to create tables in HTML, for example, how to
00:20create rows and how to create columns.
00:23Next you'll need to know how to code a little bit of CSS or Cascading Style Sheets.
00:29You'll also need some skills with image editors.
00:31For example, how to use an Eyedropper Tool to extract color information, and how
00:37to use a Marquee Tool to measure the height and width of an image.
00:41The skills you need to code in HTML email are not really technical;
00:46the challenge is in putting together different parts of any email so they'll display
00:51great in all email software.
00:54Let's show you the finished project we'll work on in this course.
Collapse this transcript
1. Building a Complete Email Newsletter in HTML
Showcasing the finished project
00:00This chapter will show you all of the steps to create this email.
00:04Notice the border background, the logo, the copy, and the address information.
00:10This is the email we'll end up creating by the end of this chapter.
00:14If you don't have the exercise files you can follow along with your own files.
00:19First let's get our tools ready.
00:21You'll need Photoshop or other image editing software, you'll need a Text
00:25Editor of course, you'll need web browsers, you'll also need prep files for CSS and HTML.
00:31In addition we're going to talk a little bit about the background image
00:34exercise file that have VML code, and you'll also need FTP software and a remote web server.
00:40Let's start with the design.
00:44Our goal is to take this design and to evaluate it so that we can turn it
00:48into HTML table codes.
00:51Looking at this design I can see that we will need three main nested tables and
00:56then we'll have two minor tables up top and bottom.
00:59The Wrapper table will take the place of the HTML body tag in a webpage.
01:05Then we'll have a table for the background border and we'll have a table for the content.
01:10At the top we're just going to add a very simple table to add the links to the
01:14web version and at the bottom we're going to add an equally simple table to
01:18handle the Unsubscribe link.
01:20This will ensure from top to bottom our email will be centered in the same width.
01:25In addition within our content table we're going to have each row as a
01:30table data or td cell.
01:32Note at the bottom here with the Facebook icon in the lower right we have Find
01:37us on Facebook, Copy, and we have the Copyright.
01:40All three elements will require three table data cells.
01:44But we'll deal with that in detail when we add images.
01:48With an idea how to build our email with HTML tables, next we'll define the
01:53colors, dimensions, and other details we will need.
Collapse this transcript
Getting your dimensions and color palette
00:00In this video we'll begin to learn then write down all the little details we'll
00:05need to code our e-mail.
00:07This includes colors, dimensions of key parts, and cutting out images.
00:12We'll create a worksheet that will service as a map that we'll use
00:16throughout this chapter.
00:18We'll begin by extracting color information from key blocks of our HTML e-mail.
00:24To do that click the Eyedropper Tool on the left and we'll start with
00:30our background pattern.
00:32Because older e-mail software may not show our background image, we'll need to
00:37pick a dark color to substitute for the image.
00:40Click, go down to our color chip and we can see that this background image color
00:46has the hexadecimal value of b6b596.
00:52The next color value we need is behind the logo, it appears to be white, but let's check.
00:59That color value is indeed white;
01:01it's FF, FF, FF, then we'll get the color for the copy area.
01:09Our goal with all of this color information is to come up with a printout or an
01:14electronic file perhaps you set this up in a wire-frame software program, like
01:18Balsamic, but you want to create a single piece of paper or page that has all of
01:23this color information, height and width information.
01:27So let's continue to extract colors.
01:31And finally the last big area is the footer, it appears to be black, but we need to check.
01:36In fact, it's a different color, so you should write this down on your worksheet.
01:42Now we're ready to begin to extract the color of the headings, subheading, and copy.
01:48To do that we'll do Ctrl++ or Command++.
01:52For the heading, let's pick a nice solid dark color area, go down to our color
01:57chip and we have our hexadecimal value for the heading, it is 35411d.
02:02Now you'll notice that the color value for the copy itself also is the same
02:10color, so we don't need to grab that.
02:13The subheading however is gray, so let's pick a solid color area and this number
02:19is a little confusing, it's 9b as in boy, 9d as a dog, 9a.
02:25In addition, we had some copy in the footer that I want to check.
02:28This is not pure white, so we need to extract this color as well.
02:33And finally, we have the link down here, which appears to be a hot green, so
02:39let's get that color.
02:42We'll type Ctrl+0 or Command+0 to return to the full screen.
02:46Now after we've extracted our color information and written it down on our
02:51worksheet, the next step is to measure out parts of our design.
02:55We'll start with the width of the design, we'll select the top area, select the
03:01Navigation panel, select the Info.
03:05Our design is 550 pixels Wide, so let's write that down.
03:10And this content area happens to be 504 pixels wide.
03:16What I do, I tend to round down or up as necessary to make the math easy as
03:22I'm coding an e-mail.
03:23And instead of being precise encoding to 504 pixels wide for each content row,
03:29I'm going to code to 500 pixels wide, that means that each of these borders will
03:35be 25 pixels wide, so 25 for a border on the left, 25 for the border on the
03:41right plus 500 will get me the 550 for the width of the entire e-mail.
03:46It will make the math much, much easier as we code.
03:50So let's write down that our content area will be 500 pixels wide and that our
03:55border is 25 pixels wide.
03:58We don't really need to do any other measurement, because we know each row is
04:01500 pixels wide and the height will be determined by the copy.
04:06Our goal is to come as close as possible to the visual look of this design,
04:11rather than having 100% pixel perfect with respect to height.
04:16Because our content area is 500 pixels wide, we also know that the images will
04:21be no wider than 500 pixels, so let's begin to cut out images.
04:26We'll start with the logo;
04:28we have a couple of options.
04:30We could either cut out the logo tightly or we could cut out the logo to force
04:34the height of the table data cell that it will be in, or we can make the logo
04:39the full width, 500 pixels wide and however tall we want, let's do that.
04:46You can see in Photoshop that I can't be 100% precise, so what I'm going to do
04:50is I'll select this area, I'll type Ctrl+C or Command+C to copy, Ctrl+N or
04:56Command+N to create a new file, this is OK, and Ctrl+V or Command+V to paste.
05:04To get the size that I want, I'll go up to Image>Canvas Size, I'll set the Width
05:10to 500 and the Height to 200.
05:15I'll then Save this image for Web & Devices, we'll set at a High value.
05:22As you can see here on the lower-left is a kilobyte, so it's probably fine.
05:29We'll need to add an images Folder, we'll Name this file, logo-two-trees, we'll save.
05:39Next, we'll cut out the photo of the olive branch.
05:43This image also needs to be no more than 500 pixels wide.
05:47We'll type Ctrl+C or Command+C to copy, Ctrl+N or Command+N to create a New
05:53Image file and Ctrl+V or Command+V to paste.
05:57We'll save for Web Devices, we'll check the size of the image, we don't want it to be too high.
06:06We'll save, and we'll call this olive branch.
06:10The last image we need to cut out is the Facebook icon in the lower right of our design.
06:16We'll type Ctrl++ or Command++ to zoom in.
06:20We don't need our Info panel anymore.
06:23As with the logo, we have a couple of options when we cut out this image;
06:28we could for example, cut out information below the image to force the height of
06:33our table data cell.
06:34In this case, I simply want the logo, I don't do anything fancy.
06:37So I will select the Marquee Tool and be pretty close.
06:42Ctrl+C or Command+C to copy, Ctrl+N or Command+N to create a New image, and
06:50Ctrl+V or Command+V to paste.
06:52I will then Save for Web Device, and then save the file.
06:58In this case I'll it icon-facebook, we'll save.
07:05I'll type Ctrl+0 or Command+0 to return to the original view.
07:10With all the details we need written down on our worksheet, let's begin
07:14coding our e-mail.
Collapse this transcript
Creating your tables for the email
00:00In the last video we extracted color information dimensions and other details
00:05and wound up with a worksheet that look something like this.
00:09To start coding we'll have in our interface a blank HTML file, we have our
00:15prep code file for HTML;
00:17we've added the doc type, body etcetera.
00:20We've got our CSS prep code, we have our email copy to save us a lot of typing,
00:26and for our discussion later when we add the background image we have our VML
00:31code for Outlook 2007 and Outlook 2010.
00:36So we'll start with our email invitation.
00:38We're going to start off very simply.
00:41No big scary leaps, we're going to add code in layers not all at once.
00:46The first step is to go to our HTML prep code, highlight, Ctrl+C or Command+C to
00:53copy, Ctrl+V or Command+V to paste.
00:57What I do want to add is an HTML comment that tells us this is our Wrapper, our
01:03pseudo BODY tag table.
01:08As we add layers and layers of code these comments will help us understand where
01:12things begin and where they end.
01:14It will save us a lot of time.
01:16I'll copy and paste and this is the close Wrapper pseudo BODY table.
01:25We have our Wrapper pseudo BODY table, we need another table for the background
01:30border and for the content, and in addition we're going to need to create these
01:34very simple tables at the top and bottom for links.
01:38Here's how we code all of these tables.
01:41We'll highlight, Ctrl+C or Command+C to copy, Ctrl+V or Command+V to paste,
01:48we'll indent, two stops.
01:52This minor table handles the view to web version link, I mentioned of the
01:57Unsubscribe link at the bottom of the email and any other data of that sort.
02:01So we'll call this basic links.
02:06Next, we'll create our background table.
02:10I'll highlight, copy, paste, we'll type Background table and the other major
02:22table I'm going to do here is for the bottom links, the unsubscribe links.
02:27I'll highlight, copy, paste.
02:29As I mentioned earlier we want these tables to manage our links to ensure
02:35everything is centered.
02:40Now let's go back to our background table, we'll highlight, copy, and paste.
02:48We'll indent this table, two stops, and this is our content table.
02:57We'll go back to our original design and you see that in our content table
03:06we have several rows.
03:08We have a row that holds our logo image, a row for the copy, a row for the olive
03:12branch image, and we have two rows for the footer.
03:16So let's create those rows.
03:19This row will be for the logo.
03:20We carefully select just the table row, not the entire table, Ctrl+C or
03:27Command+C to copy, Ctrl+V or Command+V to paste.
03:31This will be our copy area.
03:34Next we need an area for the olive branch.
03:39We need an area for the top of the footer, so this was the address information.
03:48And finally, we need an area for the copyright, Facebook icon.
03:54So now we have accounted for all of our tables.
03:59The next step is to go back to our worksheet and to begin to add the width to
04:03all the different elements.
04:05Let's begin with the background table and the 25 pixel wide borders.
04:11We want a background table, what we'll do is we'll make the cellpadding 25
04:16pixels wide, that will give us plenty of space for our background image.
04:21We also know that our background image is 550 pixels wide, so we will add that
04:26both at the table and at the td tag level.
04:31It's important especially for older browsers to specifying both locations.
04:36We know the width of our content table is 500 pixels wide, so let's simply
04:42highlight copy and paste our width for all of these table data cells.
04:51Our final step in this video will be to check our work in a local Web Browser on this computer.
04:58Let's go to the File Browser and open the saved HTML file in a Web Browser,
05:03we'll open this with Firefox.
05:06We can see that we have all of our elements for our table and we see that we
05:11have plenty of room for the background table but we can see several adjustments
05:15that we need to make.
05:17The Wrapper table needs to have its width set, and we need to center all of the
05:22table data cells within our content table, so let's make those changes quickly.
05:26We'll set this width at 99% for webmail software to give us a gutter around our email.
05:37And we want to change all of these alignments from left to center.
05:42We'll highlight, copy, and then paste.
05:50And we can see because of our bookmarks we are at the bottom of the content table.
05:55We miss the alignment for the Wrapper table, let's make that last tweak, and there we go.
06:06We have all of our tables all lined up, everything is centered with plenty of room.
06:10With our email structure coded out, next we'll add images.
Collapse this transcript
Adding your images to the code
00:00The next step is to add images and other color details to our HTML table structure.
00:07In this video we will build out our e-mail.
00:10We will add more layers of code.
00:12This is where we left off in our last video with our table structures set up.
00:18The first thing we'll do is to add a background image.
00:21Let's scroll down to our Background table, we will select background equals, we
00:29know that our images are in the images folder, which is here, I will click Copy
00:36and Ctrl+V or Command+V to paste and then I'll add the file extension.
00:42You can see that our background image works.
00:47Now let's discuss this code.
00:51This is vml code, it's Microsoft proprietary code that shows background images
00:56in Outlook 2007 and 2010.
01:00However, when I tested for this project, it doesn't work if you wrap this vml
01:04code around a table.
01:06You can't put an image behind a background.
01:09But that's not really a problem in our case, because we have a background color
01:13that we are going to add.
01:15So let's add our background color, we do that with a BG color tag.
01:21If you recall, we have a worksheet with everything marked out.
01:25So we look at our worksheet for this color.
01:27On a worksheet, the color for the background was b6b596, so let's add that.
01:36Your colors may vary of course, because within your image editing software you
01:41might use the Eyedropper tool to extract color from a slightly different area.
01:45So don't worry if these colors are not 100% accurate.
01:48You can use the colors I use of course, because they will work as well.
01:54To test whether or not this color shows, let's break the Image Reference by
01:59adding the number 2 to the image file.
02:01So you see we have a color pretty close to our background color, and it will
02:08ensure that our e-mail looks nice and clean.
02:12Let's go back before we forget and change the file name to the correct image file name.
02:19Next, let's look at each of the rows in our content table.
02:23Notice that their backgrounds are transparent.
02:26Let's set those background colors to white at least to start, and for copy
02:31and for address information in the copyright Facebook lines, we will set it
02:36to the darker color.
02:38Once again, we will use our worksheet to get these values.
02:42To add color backgrounds, we will use the bgcolor tag.
02:46In this case the color is white.
02:49As we did when we set the width of the content table, we will adjust both the
02:54table and the table data cells.
02:57For the copy, we know that the color is different.
03:00Looking at our worksheet, the color is e2e7d3.
03:07We used the same color value for the olive branch image.
03:12For the footer, we will set the color in our worksheet. That's 211b05.
03:22Let's save our file and look at the browser.
03:26We have now set the background image and the background color of different rows of our tables.
03:31The next step will be to add images, let's start with the logo.
03:35We will start with in our CSS prep file;
03:38we will copy the image Ctrl+C or Command+C to Copy, Ctrl+V or Command+V to Paste.
03:49We know the logo is in our Images' folder, which is here.
03:54I will click Copy and then Paste, and then we will add the file extension.
04:01We will add the Alt tag value in case the image does not display.
04:10Our worksheet tells us that the height of this image is 200 pixels and the
04:15width is 500 pixels.
04:18Let's Save and check our work. This look great!
04:24Next, we want to add the olive branch image.
04:27Our CSS prep code file, Ctrl+C or Command+C to copy the image, and we
04:33will replace this text.
04:37In the Images folder, Copy and then Paste and add the file extension.
04:46We will also fill out the Alt tag, and our worksheet tells us that this image is
04:54177 pixels high and the width is 500 pixels wide.
05:00Let's save and check our work. There we go;
05:06the next step will be to add the Facebook item in the bottom right row.
05:12If you recall, when we took this email design apart and defined a structure, we
05:16decided that the bottom footer row needs to be three table data cells.
05:21Now let's turn that into code.
05:23We will scroll down to our copyright facebook row, we need to copy this table
05:31data reference and paste it two more times.
05:34So this will be the copyright, this will be find us on Facebook and this will
05:45be the Facebook icon.
05:47To add the icon, we will go to the CSS prep code file, copy our image tag, paste it in here.
05:55Our source file is found in the Images folder, we will copy the file name and to
06:04add the file extension.
06:06Fill out the Alt tag, our worksheet tells us, this image file is 28 pixels
06:13high and 28 pixels wide.
06:16So let's Save and let's see what happens.
06:21Notice how these two table data cells on the lower right are separate off by themselves.
06:27With HTML tables, we will need to specify that each of these content rows is
06:32able to span three columns.
06:35The specific tag is called a call span tag.
06:38So let's add that to each of these table data rows in our content table.
06:44So we will add it here.
06:45We will highlight, Copy and Paste.
06:50We will Save and check our work.
06:59So now everything fits tightly.
07:01Let's finish off the Facebook icon by specifying the width in the alignment of the copy.
07:07Specifically, the copyright will need to be aligned to the left, to find us on
07:11Facebook copy, we will need to be aligned to the right and the Facebook icon can
07:15either be center or right.
07:18So we will work first here on copyright, we want the alignment to the left, this
07:24alignment to the right and this alignment we will leave alone.
07:30We want to specify the width here as 250, 200 and 50.
07:38Remember our image is only 28 pixels wide.
07:41Which width you set will depend on the copy, but we'll do that in the next
07:45video, and we may refine these values.
07:48Let's Save and for now we can see that our copy fits, and we are generally in the ballpark.
07:55Our images are now in place.
07:58In the next video we will add headings and copy and code them to match the email design.
Collapse this transcript
Placing your copy in the code
00:00In this video will I copy to our email and go to work on spacing that
00:04surrounds our content.
00:06This is where we left off in the prior video.
00:09Now let's get to work on copy.
00:11We will go to our email copy text file, typically, when I code an HTML e-mail I
00:17will extract all the content out into a separate file, so that I don't actually
00:21have to type in the code.
00:22Most in my coding then is simply Copy+Paste.
00:25We will start at the top of the email.
00:28Ctrl+C or Command+C to copy, Ctrl+V or Command+V to Paste.
00:33I'll bring it up a line, and we will go to our copy table data cell.
00:42Select this, and our copy extents from here, down to here.
00:47So we will Copy and Paste.
00:53For our address information, we need this line of copy.
01:04Our copyright is a little bit different;
01:07we have it here, Copy and Paste.
01:15Just make sure I copy this, maybe the same, but I just want to be sure, because
01:21I was careful to copy the text correctly the first time.
01:24We will save our work and check our display.
01:29What we will do next, is we will add paragraph tags and we will begin formatting
01:33some of these bits of copy.
01:37Start again at the top.
01:39For this small table, I want to add the font styling information at the table
01:44data level, and the reason is to reduce the amount of code.
01:47We are going to add a link here, and therefore, I don't want to have to code
01:52the paragraph tag and then code the link, so I will separate the two chunks of style information.
01:57I will close it off, and I will go to my CSS prep file, I will select, Ctrl+C
02:05or Command+C to Copy.
02:06Ctrl+V or Command+V to Paste.
02:09I will add the link at this point.
02:15Notice that I set a target ="_ blank" value that is for webmail.
02:20We don't want any link to open up in your email client.
02:25You wanted to open a new browser window, and because these top and bottom links
02:30will be mouse print effectively, we will set the font size to 10.
02:34We will keep the line-height is fine, and we will go back and style the link layer.
02:42Next, we scroll down to our copy.
02:45This line is our heading, so let's set it with the H1 tag.
02:49We also could use spans or divs, but I try to avoid them in HTML email code,
02:55because older email software isn't guaranteed to acknowledge a span or div.
03:01For our subheading, I will set it at H2 and down here, I will set p or paragraph
03:10tags and I will create a close p tag, highlight, Copy and then Paste.
03:19This chuck of copy is a single block, so we need break tags.
03:23For older email software, we need the old HTML break tag, not XHTML.
03:28We'll Save and then scroll down.
03:34Here let's do the same thing we did up above.
03:36We will set the style for the font at the table data cell level, and that will
03:41allow us to set the style for the link separately, and it will save us a little
03:46bit of code, make it easier to read.
03:47We will scroll up here, and we will start with this for now.
03:53We can always change it later layer.
03:54We will go back to our address information, and for now we will set it at 10
04:01pixels, and we will set the anchor tag links later.
04:06We will take the same strategy here;
04:09we will set the font information at the table data level.
04:14We don't need to set the font for the Facebook image however, so let's save our
04:18work for now and see what we have.
04:21All right, several things, first of all we need to change the color of our
04:27heading and our subheading, and we need to define the font information for them
04:31a little bit better.
04:34Let's also take a quick look at the original design.
04:36You'll notice that the phrase Private Tours & Tastings in October is bold, and
04:42you will notice that the line that beings To RSVP please reply also is bold.
04:47So let's remember to add those values as well.
04:50In addition, we can also set the color for the footer copy.
04:54So we will start at the top, we will begin with this font information, we will
05:03scroll back down, Ctrl+V or Command+V to Paste.
05:08We probably want the font size for our heading to be around 16 pixels, we want
05:14the font weight to be bold, and we want a Serif font, we will start with
05:20Georgia, Times and Serif.
05:24This allows older email software to degrade.
05:27If it doesn't have Georgia, it will select Times, if it doesn't have Times, it
05:31will select Serif, and because this whole copy block uses Serif fonts, we will
05:37simply copy it for our subheading as well.
05:40We will go to our worksheet and we will figure out what our colors are for the
05:46headings, subheading and copy.
05:49For our heading we have our color as 35411d in hexadecimal.
05:55For our subheading, we have as a color 9b9d9a.
06:02Now we can copy the style information for the heading into the paragraph tags.
06:07We will of course adjust the font size and the line-height.
06:13Up here I notice that the line- height is actually set incorrectly.
06:16It should be at least equal to the font-size.
06:18We will set it at 16.
06:19The addition if you remember, the subheading is Italicized.
06:26So we will set that as <em> for emphasis and we will close it off here.
06:32If you recall Private Tours & Tastings also was Bold, so we will set that in Bold.
06:41And this To RSVP line also was set in Bold.
06:45I forgot to reset the font-size.
06:47Let's go back and set this.
06:50It's 12, 12 and 12.
06:56We also can increase the line-height to 16, 16, and 16.
07:05So let's save our work and see what we have.
07:07Let's close, let's look at our original design.
07:14I see that actually in our original design our font is San-serif for the actual body copy.
07:19So we will make that change, and I see that we have more space in between the lines;
07:24it's a little bit bigger.
07:26So let's go back and make those changes.
07:28So we will make the leading 18 pixels, 18 pixels, 18 pixels.
07:37So I will scroll down to the paragraph tags, and I will change this definition
07:41to Arial, Helvetica, and San-serif.
07:45Then I will copy this change to the other paragraph tags, not the heading or subheading.
07:53I also need to set this line- height to 18 to make everything equal.
07:58Let's go back and change our paragraph definitions to make the
08:01font-weight normal.
08:02We are only updating the paragraph tags at this point.
08:11That's much better.
08:12Now that we have our content figured out, let's work on issues of margins and padding.
Collapse this transcript
Adjusting the margins and padding
00:00In this video we'll begin to work on margin and padding issues in our e-mail.
00:06You'll see that the copy block for example is spread wall-to-wall in our content table.
00:12So go up to our heading, go up to our css prep code and we'll copy this style
00:19information and we'll adjust it to adjuster spacing, add a space, paste, add a space and paste.
00:31What we will do here is we'll adjust the padding at the top and bottom of our
00:35heading, 20 pixels for the top and 5 pixels for the bottom.We'll set this to 0
00:43for padding top of our subheading, but we'll set the padding bottom to 20
00:47pixels, let's Save and take a look.
00:53So we need to increase the font size of our heading and subheading, but
00:57generally this works.
00:59Instead of 16 let's try 20 pixels for the heading, instead of 10 pixels for the
01:06subheading, let's try 14 pixels, we'll Save and check, it's much better.
01:15Let's look at our design and we're pretty close for now.
01:20Next, let's look at the padding on the left and right of our copy block.
01:26We don't need to set the padding on the left or the right for the heading or the
01:29subheading, they're short enough, but we probably do at the paragraph level.
01:34So we'll go back to our prep code, Ctrl+C or Command+C to copy, Ctrl+V
01:39or Command+V to paste.
01:40I want to set the padding at the paragraph level, just in case the table data
01:46cell information doesn't translate to older e-mail software.
01:50So we will set the padding right at 20 pixels and the padding left at 20 pixels,
01:57and let see how that works for this paragraph, that's close.
02:03We can go to our original design and we see that we have a little bit more space.
02:10We'll set it to 30 for padding left and 30 for padding right, save and check our work.
02:20In addition if we want, we can use break tags in our copy, this is not being
02:26used for search engine optimization, so if you want a different line break, you
02:31also can use the break or BR tags.
02:34This looks okay for now, so we'll adjust the margin and padding for this To
02:39RSVP bit of copy, then we'll highlight and then copy this chunck of styles, we
02:46don't need it for the private tours line, we do need it down here, let's save and check.
02:56We can add more space for this line To RSVP, and we also need to add space below
03:02it, so let's set the padding right and left to 50.
03:08We also want to control the padding bottom, let's set that to 25, save and
03:15check, there, that's much better.
03:19So let's check our e-mail.
03:22Again, if you want precision, you can add BR tags to get the copy block to break
03:27at exact points, for now I won't do that.
03:31With our copy block margin and padding figured out;
03:34let's tackle the headers and footers at the top and bottom of our e-mail.
Collapse this transcript
Formatting the headers and footers
00:00We're ready in this video to finish off our e-mail by coding the headers and
00:05footers at the top and bottom of our e-mail.
00:09We did set the font size here, but we'll also need to set the margin and padding.
00:14Go to our css prep file, Ctrl+C or Command+C to Copy, Ctrl+V or Command+V to Paste.
00:21We want the padding top and bottom probably 5 pixels is fine.
00:26We set the padding top and bottom instead of margin top and bottom, because
00:31older e-mail software often ignores margin while paying attention to padding, so
00:37let's save and see what we did, the spacing looks good.
00:43Let's also, while we're adding, adjust the color.
00:47If we go to our worksheet, we'll see that the color in hexadecimal is cfce96, so
00:56let's save our work and see what we have, that looks good!
01:01We'll set the anchor tag information last.
01:04Next, let's worked at the copyright and find us on Facebook.
01:10To adjust the other bits of footer copy, we'll simply put this information about
01:15color and paste it in here and here.
01:21We also need to grab the margin and padding values, Copy, Ctrl+V or Command+V to
01:27Paste, and here, and Save, that looks pretty good!
01:36We need to set the margin or padding for the copyright notice.
01:41So we use padding for the older browsers and we'll set it to 20 pixels.
01:50Now that we're down here, let's adjust these width a little bit, let's tighten
01:54the space around our Facebook icon.
01:58We had the width for our Facebook icons set to 50, let's set it to around 40,
02:05and up here, let's reduce this by 10 to 190;
02:09we'll Save and check, that's make it a little bit tighter.
02:15The next thing we'll work on are the anchor tags styles. We'll scroll up;
02:20here we'll need to set the color mostly.
02:23If we look at our worksheet where we define the colors and dimensions of our
02:28e-mail, we can see that the color for this link is c3e85d in hexadecimal.
02:37save and check, great!
02:40And finally, let's work on these minor tables at the top and bottom, we'll
02:46scroll up, we need to set the width to 550 pixels at the table and TD level,
02:54let's scroll down to the bottom, we'll also set the width here, 550 pixels, and
03:04we will add basic font styles and then add the copy.
03:08We go to our css prep file, highlight, copy, paste, this is mouse print, so
03:17we'll set it to 10 pixels high, we'll leave the line-height.
03:20For now we'll set basic unsubscribed information.
03:27We'll Save and check, great!
03:33With our header and footer complete we're ready to begin testing formally.
Collapse this transcript
Testing the email in BrowserLab
00:00This is where we left off with our HTML e-mail;
00:03it's fully coded and ready to test.
00:06To begin our test, we need to put our HTML e-mail file on a remote web server
00:12along with its images.
00:14Our current file is number 4 and we'll copy our Image folder and we'll drag them over.
00:20Then I double-check if this file does display over the Internet, it does, we're
00:27ready to begin testing.
00:29To begin our testing, let's start with browser lab, this is currently a free
00:33service that Adobe offers where you can test how your HTML e-mail displays
00:38against various web browsers.
00:41We've created a browser set of just Internet Explorer browsers, and we go to
00:46the Test page, we'll go back to the URL where our HTML file is located, we'll
00:54paste it into the URL.
00:59We can see that at the top, the HTML e-mail displays fine, including
01:03our background border.
01:05We also can see that our spacing and alignment generally is okay.
01:10The copyright line and find us on Facebook line might be pushed down a little
01:14bit, but otherwise it displays perfectly.
01:18With Internet Explorer 7, we have this same result and with Internet Explorer 8,
01:26as we expect, everything looks great, and 9 as well, because both 8 and 9 are
01:33pretty much standards compliant.
01:37The only issue we found has to do with spacing of the copyright line and the
01:41find us on Facebook line, let's see if we can tweak this just a little bit.
01:47We'll scroll down to our copyright;
01:50let's see if padding will help us out.
01:52Let's do 10 pixels of padding, and we'll do 0 on the bottom.
01:5710 pixels of padding on the top and 0 on the bottom.
02:04I also notice here, for this table data cell.
02:07we have not defined margins and padding at 0.
02:10For older e-mail software we might want to play it safe.
02:13So let's copy this information from css prep file, we'll make a simple style
02:20declaration, and we'll type Ctrl+V or Command+V, just a little bit of safety.
02:27Probably, we could set it at 7 or even 8 pixels of padding on the top, with the
02:33changes made, we'll, FTP the new version over and we'll go to browser lab,
02:40scroll here to the top, hit Refresh, and scroll down, and that looks great!
02:48We have good vertical height and the text is aligned to the middle of the Facebook icon.
02:53Let's double-check with Internet Explorer 6 and 7;
02:57to be sure, we get the same results, that's much better.
03:04Now that our HTML e-mail has passed browser lab, and we can be certain that any
03:09older e-mail software that uses Internet Explorer 6 or Internet Explorer 7, will
03:15display our e-mail fine, the next with testing is to use an e-mail delivery
03:20service to test how our e-mail looks in different e-mail software.
03:26The e-mail delivery service that I want to use for testing is Campaign Monitor,
03:31but there are other ways to test your e-mail.
03:34MailChimp for example has a similar service.
03:37I create a campaign called Two Trees Test;
03:41we need to update the HTML, we go back to our remote server, we Copy the URL and
03:50we Paste it here, with Ctrl+V or Command+V and we click Get my campaign.
03:59We want to preview the campaign to make sure we've got the right e-mail, and we do.
04:05Next, we want to click the link Design and spam testing.
04:10On the right we want to click Run a new test, we click Test this draft.
04:16At the bottom click Submit payment and run the test button.
04:21Now we wait a few minutes for the results.
04:23On the right hand column you'll see a series of Web-based e-mail clients that
04:28our e-mail is tested against, Desktop e-mail clients, Mobile e-mail clients, and
04:33then they also have Spam filter results.
04:36As you wait, on the right, you'll see the different names of the e-mail clients
04:42fill in and become dark as the test complete.
04:45Now we've got some of our results, so we can check those while we wait for Apple
04:50Mail and other e-mail clients to come back, let's check first with AOL Web.
04:55The top appears great, it picked up the background tables, and the vertical
05:01alignment on our footer, our copyright copy looks great!
05:07Next, we'll check Gmail, that also shows the background table, and our vertical
05:13alignment in the footer also works.
05:17Hotmail, we can see that Hotmail has changed the font color, there is a way to
05:23address that if we want to test further.
05:26Let's see what other issues come up however.
05:29MobileMe is problematic, both because it's going away, and because it doesn't
05:33respect the background color.
05:36So you can see that our copy block is see-through our logo only works, because
05:40it is wall-to-wall, and the footer table doesn't work at all.
05:46So there's really nothing we can do in that instance. With Yahoo! Mail
05:50we get results similar to Gmail.
05:54So far the only real issue is Hotmail changing the color of our subheading.
06:00There are times when e-mail code works perfectly on every e-mail software,
06:05except one, as in this case.
06:07You have to decide how far to go with testing.
06:11If you want to continue testing in e -mail forever, until you solve the
06:14problem, you either need the e-mail software or pay additional amount of money for testing.
Collapse this transcript
Designing and coding a text email
00:00Creating a text version of our e-mail should not take much time;
00:04it's also one of the more interesting design challenges.
00:08Text e-mail cannot use color, font size and HTML links, for example.
00:12To begin we'll start with our e-mail copy text file, we'll type Ctrl+A or
00:17Command+A to select everything, Ctrl+C or Command+C to Copy and we'll create a
00:23new file and Ctrl+V or Command+V to Paste.
00:28One of the key challenges with text e-mail design is how to differentiate
00:32headings from links, important information from non-important information.
00:37In this case, it's important to tell people how they subscribed, and how you got
00:41there e-mail address.
00:43It's also important to include a link to view the web version.
00:46However, it's not as important as they heading or subheading, so let's
00:50build this text e-mail.
00:53Put this on a new line, we have in our exercise file a series of character lines.
00:59This represents how we might use different characters on the keyboard to create
01:03dividers, to help our readers, skin our text e-mail.
01:08In this case, you see we have plus signs, double equal, and I'm looking for
01:13stars, so I'll select this, copy and then paste.
01:19The other important point about text e -mail is that it can only be about 60
01:23to 65 characters wide.
01:26E-mail software typically cuts off text e-mails at about 70 to 80 characters.
01:33In this case, our borders are about 40 characters I'll add a border underneath,
01:39and I will use the heading to give me an idea where to do a line break.
01:42I'll shorten this up a little bit;
01:46I'll add the link to the web version.
01:50Next, I want to tackle a heading here, I like the idea of an underline, so let me do this.
01:58I'll push this over to roughly the right edge of our top divider line and I'll
02:05do the same, and I'll use it to line up.
02:07Then I'll go through my copy and pick breakpoints based on the right edge,
02:16doesn't have to be perfect, it just has to look good.
02:20I'm also separating out that we look forward to seeing you, because it will be
02:24much stronger this way than on a webpage.
02:28This chunk of text looks fine;
02:29I need to break this up a little bit.
02:36Here with the address, I'm going to do this on multiple lines and I'll
02:41remove the HTML code.
02:46Finally, I'll change this symbol for copyright to the word.
02:52I'll add a link for Facebook, because the copyright, and to lesser extent the
02:58Facebook URL are less important than the actual message.
03:02I want to create a divider here.
03:04I'll go to my file with e-mail dividers, so I'll select this, scroll down, hit
03:14Enter and there's our text e-mail.
03:17As you can see we've taken a couple of very simple ideas, and we've created some
03:22visual differentiation, so people can tell what are headlines, what's copy,
03:26what's extremely important and what's less important.
03:29Now we'll save this.
03:30Now that we have a text version and an HTML version of our e-mail, we're ready
03:38to send our e-mail, the last step in this project.
Collapse this transcript
Sending the final email out
00:00In the last video we created a text e-mail version of our HTML e-mail.
00:06In this video we'll go back to Camping Monitor to show how to send both, text
00:10and HTML versions of our e-mail.
00:12The first step is to rename our email- invitation file that we've used to test.
00:18We'll rename this as email- invitation-final.html, and we'll save it.
00:28After that we'll refresh our FTP and we'll send it over to our server.
00:35At Camping Monitor we want to click on the Two Trees Test campaign, and now we
00:43can update both our HTML and text e-mails.
00:47The name is changed to HTML invitation -final, click Get my campaign, we'll
00:54preview the campaign, it looks like everything is working.
00:57Now I'll go back to Saved Drafts, and we'll update our Text e-mail.
01:06For that we'll return to our code editor or e-mail invitation file Ctrl+A or
01:11Command+A to Select, Ctrl+C or Command+ C to Copy, we'll highlight everything
01:18here, we do need to leave the unsubscribed link, make some space below so that that's clear.
01:25We'll scroll down and click I'm done, return to the snapshot.
01:29Now we are ready to send.
01:32We scroll down and click Test and define delivery, we'll scroll down we'll Skip the test.
01:39We want to deliver the campaign immediately;
01:42we'll scroll down and click Send campaign immediately.
01:47Now let's see our results.
01:49We'll check in Google mail, and here, in Gmail, we see that our e-mail has arrived.
01:59The images are all turned off, however, it still displays fine.
02:05Let's turn the images on, we click Display images below, and everything looks good!
02:13This chapter has shown all the key steps needed to code, both HTML and text
02:18e-mails, as well as testing and sending our e-mails.
02:21You should be able to code almost any e-mail using the techniques you've seen in this chapter.
02:26Good luck with your projects!
Collapse this transcript
Conclusion
Next steps
00:00Thanks for watching this course.
00:02Hopefully, this course has helped you learn more about coding and designing HTML e-mail.
00:07To continue your training in design and coding of HTML e-mails, here are a few
00:12sites that I find useful.
00:14MailChimp has an excellent resources page, as well as a blog that's worth
00:19reading and keeping up with.
00:21In addition, Campaign Monitor also has an excellent resources' page and their
00:26blog covers a number of topics over time that address common issues people have,
00:32as they use and create e-mail.
00:36If you're interested to learn more about editorial calendars, this Wikipedia
00:40entry has a good description, as well as links at the bottom to a number of
00:46articles on the topic, if you want to learn more about how to organize
00:50content, so that you can publish it in your e-mail newsletter, Facebook,
00:55Twitter and all these other places.
00:57The last resource I would mention is an article that I published starting in
01:022003 or 2004, when I couldn't find information about how to design and code
01:07HTML e-mail newsletters.
01:10My focus is to be vendor neutral and to link and describe articles and
01:16information that I find every year or so that cover topics about e-mail design
01:21and e-mail coding very well.
01:23There are many, many, many other websites that discuss e-mail marketing online,
01:28and I encourage you to use Google.
01:31Good luck and thank you again for your time!
Collapse this transcript


Suggested courses to watch next:

Email Marketing Basics (56m 57s)
John Arnold


XHTML and HTML Essential Training (4h 44m)
Bill Weinman

Typography for Web Designers (6h 25m)
Laura Franz


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked