html & email template

  1. inline style
  2. build tools


https://templates.mailchimp.com/getting-started/html-email-basics/

HTML Email Basics

This reference assumes you’re a front-end web designer with an intermediate working knowledge of HTML and CSS. You’re comfortable coding in and using HTML tables for structure, and working in coding standards that were state-of-the-art in 1999. Feel free to crank up a little TLC or Goo Goo Dolls to get into the spirit of things.

Best Practices: Design

There are a few things to keep in mind when designing HTML email campaigns.

  • Emails should be 600-800 pixels maximum width. This will make them behave better within the preview-pane size provided by many clients.
  • Design for simplicity. Use grid-based layers and avoid complicated elements that require HTML floats or positioning.
  • Assume images will be initially blocked by email clients, or that certain images—background images, for example—will completely fail to load.
  • Don’t design an email that’s essentially one large, sliced-up image. While these kinds of emails look pretty, they perform poorly.
  • Use basic, cross-platform fonts such as Arial, Verdana, Georgia, and Times New Roman.
  • Avoid elements that require Flash or JavaScript. If you need motion in an email, a .gif is your best bet.
  • Don’t forget about the mobile experience! Is your email readable at arm’s length on a small screen? Will the images slow its load time on a mobile device? Are your links easy to press with a thumb?

Best Practices: Development

Much like with design, there are best practices to follow when coding HTML email.

  • Code all structure using the table element. For more complicated layouts, you should nest tables to build complex structures.
  • Use element attributes (such as cellpadding, valign, and width) to set table dimensions. This forces a box-model structure.
  • Keep your CSS simple. Avoid compound style declarations (IE: “font:#000 12px Arial, Helvetica, sans-serif;”), shorthand code (IE: #000 instead of #000000), CSS layout properties (IE: slot, position, clear, visibility, etc.), complex selectors (IE: descendant, child or sibling selectors, and pseudo-elements)
  • Inline all CSS before sending. (Mailchimp will do this for you automatically.)
  • Use only absolute links for images, and host those images on a reliable server. (Mailchimp provides free image hosting.)
  • Don’t bother with JavaScript or Flash—those technologies are largely unsupported by email clients.
  • Account for mobile-friendliness, if possible. Use media queries to increase text sizes on small screens, provide thumb-sized (~46x46px) hit areas for links. Make an email responsive if the design allows for it.
  • Test, test, test. Create email accounts across various services, and send emails to yourself. Do this in conjunction with services such as Litmus.

https://litmus.com/


html email templates responsive

https://colorlib.com/wp/responsive-html-email-templates/
https://designseer.com/best-responsive-html-email-templates/
https://speckyboy.com/free-responsive-email-templates/

https://litmus.com/resources/free-responsive-email-templates

https://elements.envato.com/web-templates/email-templates

https://foundation.zurb.com/emails/getting-started.html

https://htmlemail.io/

https://stripo.email/templates/

online GUI tools

http://digith.com/transaction/transaction/digith_template_builder/index.html

html email template github

https://github.com/topics/email-template


https://github.com/leemunroe/responsive-html-email-template

https://github.com/leemunroe/responsive-html-email-template/blob/master/email.html

https://github.com/mailchimp/Email-Blueprints

https://github.com/charlesmudy/Responsive-HTML-Email-Template

https://github.com/charlesmudy/responsive-html-email-template/blob/master/index.html

https://gist.github.com/Dragoneel/7cde92b5bdf16972fcfb

https://github.com/mailgun/transactional-email-templates

https://github.com/konsav/email-templates

Tutorials

html email basics

https://templates.mailchimp.com/

https://templates.mailchimp.com/getting-started/html-email-basics/


how to email client render email page?

https://stackoverflow.com/questions/1018078/testing-html-email-rendering


https://group-mail.com/html-email/tips-to-create-html-email-that-works-with-all-email-clients-part-1/

https://www.templatemonster.com/blog/render-emails-perfectly-different-email-clients/

https://litmus.com/blog/why-do-email-clients-render-emails-differently

https://mailchimp.com/resources/why-clients-render-email-differently/

https://mailtrap.io/blog/2018-08-30-building-email-template


table & css & email template

https://css-tricks.com/complete-guide-table-element/

https://css-tricks.com/accessible-simple-responsive-tables/

https://css-tricks.com/almanac/properties/t/table-layout/

转载于:https://www.cnblogs.com/xgqfrms/p/9877194.html

html email template相关推荐

  1. iOS SDK: Send E-mail In-App

    2019独角兽企业重金招聘Python工程师标准>>> In this iOS SDK tutorial, I'll demonstrate how to allow your us ...

  2. java构建xml参数_Java中使用XML创建EMAIL模板

    邮件模板 让我们来看看邮件模板的格式.模板是XML文件,它包含一个根元素和一系列根的子元素.根元素是.必要的子元素是, , 和 .可选的子元素是 , , 和 .如果你使用过邮件系统,那么你可以推导出这 ...

  3. HTML Email 编写指南

    作者: 阮一峰 今天,我想写一个"低技术"问题. 话说我订阅了不少了新闻邮件(Newsletter),比如JavaScript Weekly.每周收到一封邮件,了解本周的大事. 有 ...

  4. Ace - Responsive Admin Template

    转载:http://blog.csdn.net/pondbay/article/details/40341657# Ace简介: Ace 是一个轻量.功能丰富.HTML5.响应式.支持手机及平板电脑上 ...

  5. SpringBoot 使用 Thymeleaf 如何发送带模板的Email邮件

    SpringBoot+Thymeleaf发送模板邮件 如何在Spring Boot 应用中发送邮件以及使用简单强大的Thymeleaf模板引擎来制作邮件内容. 一.授权码 常用的电子协议有POP3,S ...

  6. 30个设计精美的Email Templates[邮件模版] (建议收藏)

    Karma - Clean Modern Corporate Email Template 查看演示   Karma is a professionally designed Email templa ...

  7. Email的HTML代码模板

    在Build an HTML Email Template From Scratch (tutsplus.com)的基础上更改,以符合个人量化交易服务器给我自己发送email通知的需求: <!D ...

  8. html实现动态多表单输入,提交多个动态添加的html表单

    我正在构建一个可以动态添加表单的功能.不是表单字段,而是一个完整的单独的HTML表单.提交多个动态添加的html表单 我使用JS添加它们. add_email_template $('#add_ema ...

  9. [AX2012]发送广播邮件

    AX 2012可以使用MAPI或者SMTP发送邮件,MAPI是客户端方法,需要outlook的协作,而SMTP则是服务器端方法,要求SMTP允许AOS服务器通过它中继.这里要讲的就是如何通过SMTP发 ...

  10. 从Jenkins或Gerrit上获取拉代码和编译命令

    从Jenkins或Gerrit上获取拉代码和编译命令 在解一个新平台的bug时,有时候我们需要去拉新平台的代码和知道编译命令,这时候我们一般是去找对应的release manager或去问SPM,这其 ...

最新文章

  1. 国服被ban咋看_王者荣耀:赵云不会玩?完美详细攻略教学,看完助你轻松上王者...
  2. 论文浅尝 | 使用变分推理做KBQA
  3. mysql左连接_面试考MySQL性能优化,一个问题就干趴下了!
  4. Vue, element-ui Module build failed: Error: No PostCSS Config found
  5. Java —— Reflect反射机制
  6. Fastdfs读取文件内容
  7. 部署和应用程序没有匹配的安全区域错误
  8. C++17新属性详解
  9. 计算机快捷键英语,计算机快捷键(国外英语资料).doc
  10. Linux命令分隔符
  11. 判断二叉树是否为平衡二叉树(递归)
  12. 深度学习之迁移学习介绍与使用
  13. 今年林业调查资质丙级与乙级如何办理怎么申报
  14. OpenGL学习之材质RGB值和光源RGB值关系
  15. matlab智能算法之萤火虫算法
  16. 京东商城李大学:技术驱动 京东十年
  17. 论文浏览(27) Long-Term Feature Banks for Detailed Video Understanding
  18. 【踩坑专栏】 Cannot access aliyun () in offline mode and the artifact sso-demo:parent:pom:1.0-SNAPSHOT has
  19. [论文笔记] [2014] Deeply-Supervised Nets
  20. 无法启动此程序因为计算机丢失d3dx9,Win7系统电脑提示“计算机中丢失d3dx9-41.dll”怎么办?...

热门文章

  1. 同样的事情,小孩叫逆反,大人叫抬杠
  2. Android Studio下载Gradle一直失败,使用正确的下载地址
  3. LINUX FFMPEG编译详细过程记录(最全)
  4. LINUX获取当前窗口的ID
  5. 光子能变成正负电子,能不能变成其他正反物质?
  6. Windows下FireFox插件dll文件名,必须是np开头,不能是plugin结尾
  7. 解决办法:error: ‘unordered_map’ in namespace ‘std’ does not name a template type
  8. 编译安装汇总:nVidia驱动/CUDA/cuDNN/TensorRT/OpenCV/gstreamer/DeepStream/jpeglib等
  9. LINUX下使用scp命令与其他机器远程交换文件
  10. UBUNTU使用GITHUB