{"id":4098,"date":"2018-06-20T00:00:00","date_gmt":"2018-06-20T00:00:00","guid":{"rendered":"https:\/\/www.litmus.com\/blog\/what-is-emmet\/"},"modified":"2023-07-27T15:15:05","modified_gmt":"2023-07-27T19:15:05","slug":"what-is-emmet","status":"publish","type":"post","link":"https:\/\/www.litmus.com\/blog\/what-is-emmet","title":{"rendered":"What Is Emmet?"},"content":{"rendered":"<p>As companies send more and more email, marketers and designers are on the hunt for tools to help reduce the time between campaign brainstorm and completed send. One of the most time-consuming aspects of email marketing has always been coding and testing campaigns.<\/p>\n<p>While <a rel=\"noopener\" href=\"https:\/\/litmus.com\/community\/templates\">pre-coded email templates<\/a> can save time during the development process, how can email designers code campaigns more efficiently from scratch?<\/p>\n<p>One way is to write less code with the help of a tool called <a rel=\"noopener\" target=\"_blank\" href=\"http:\/\/emmet.io\/\">Emmet<\/a>.<\/p>\n<h2>What is Emmet?<\/h2>\n<p>Emmet is a free add-on for your text editor that allows you to type shortcuts that are then expanded into full pieces of code. By using Emmet, email designers type less, saving both keystrokes and time when building a campaign. Also, relying on Emmet\u2019s autocompletion means fewer typos and missing tags, leading to more robust emails.<\/p>\n<p>Emmet is available for a variety of text editors and is built right into <a rel=\"noopener\" href=\"https:\/\/litmus.com\/email-builder\">Litmus Builder<\/a>. Popular with web designers, Emmet is also popular among a small set of email developers, particularly Europeans and marketers who code emails from scratch. For instance, 11% of marketers in Europe and the UK and 13% of those that code emails from scratch use Emmet, according to our <a rel=\"noopener\" href=\"https:\/\/litmus.com\/ebooks\/state-of-email-workflows-2018\">2018 State of Email Workflows research<\/a>.<\/p>\n<figure id=\"post-20958 media-20958\" class=\"alignnone nudged\"><a rel=\"noopener\" href=\"https:\/\/litmus.com\/ebooks\/state-of-email-workflows-2018\"><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/litmus-emmet_plugin_usage_remains_niche.png\" alt=\"Emmet Plugin Usage Remains Niche\" width=\"1398\" height=\"1349\" \/><\/a><\/figure>\n<p>Once installed, Emmet allows you to type using abbreviated code that follows the same conventions used in HTML and CSS. Designers can type element names, add ID and class selectors, and take advantage of Emmet\u2019s more advanced functions to speed up the coding process. They can even nest elements using the same child and sibling selectors found in plain CSS to quickly scaffold large blocks of code.<\/p>\n<h2>Using Emmet<\/h2>\n<p>The easiest way to understand Emmet is by looking at an example. Say you want a table with three rows, each containing a table cell with an image above a paragraph of text and a link.<\/p>\n<figure id=\"post-13497 media-13497\" class=\"aligncenter\"><img decoding=\"async\" class=\" shaded\" src=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2020\/04\/emmet-example.jpg\" alt=\"Our desired structure.\" \/><figcaption>Our desired structure.<\/figcaption><\/figure>\n<p>Instead of manually typing\u2014or copying and pasting\u2014each row, table cell, image, paragraph, and link tag, you can condense that down to one line and let Emmet do most of the work for you.<\/p>\n<pre><code style=\"background: #333; color: #fff; margin: 20px 0 30px 0;\">table&gt;tr*3&gt;td&gt;img+p+a<\/code><\/pre>\n<p>After hitting the TAB button to trigger Emmet, the one line of code above is expanded into full HTML.<\/p>\n<pre><code style=\"background: #333; color: #fff; margin: 20px 0 30px 0;\">&lt;table&gt;\n  &lt;tr&gt;\n    &lt;td&gt;\n      &lt;img src=\"\" alt=\"\" \/&gt;\n      &lt;p&gt;&lt;\/p&gt;\n      &lt;a rel=\"noopener\" target=\"_blank\" href=\"\"&gt;&lt;\/a&gt;\n    &lt;\/td&gt;\n  &lt;\/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;\n      &lt;img src=\"\" alt=\"\" \/&gt;\n      &lt;p&gt;&lt;\/p&gt;\n      &lt;a rel=\"noopener\" target=\"_blank\" href=\"\"&gt;&lt;\/a&gt;\n    &lt;\/td&gt;\n  &lt;\/tr&gt;\n  &lt;tr&gt;\n    &lt;td&gt;\n      &lt;img src=\"\" alt=\"\" \/&gt;\n      &lt;p&gt;&lt;\/p&gt;\n      &lt;a rel=\"noopener\" target=\"_blank\" href=\"\"&gt;&lt;\/a&gt;\n    &lt;\/td&gt;\n  &lt;\/tr&gt;\n&lt;\/table&gt;<\/code><\/pre>\n<p>That line of code looks intimidating, but once you get familiar with Emmet\u2019s syntax, it becomes second nature. Let\u2019s break it down.<\/p>\n<p>The line begins with the table element, which tells Emmet that the first element to expand is an HTML table. Using the child selector (&gt;) and multiplication operator (*), we then tell Emmet to include three table rows within the main table.<\/p>\n<p>Next, we include another child selector to add a table cell into each table row. Within those table cells, we include an image, paragraph, and anchor tag as siblings (+) of each other.<\/p>\n<p>For email designers, who rely on HTML attributes to ensure consistency across different email applications, you can even include attributes which Emmet will then use in your expanded code. Simply place your attributes and their values within square brackets, separated by spaces. If we wanted to include cellpadding and cellspacing on a table, for example, we would write:<\/p>\n<pre><code style=\"background: #333; color: #fff; margin: 20px 0 30px 0;\">table[cellpadding=0 cellspacing=0]<\/code><\/pre>\n<p>Emmet has a ton of useful features, including functions to group items, quickly navigate, remove tags, merge lines, and even add dummy text. While there are far too many features to discuss here, Emmet\u2019s <a rel=\"noopener\" target=\"_blank\" href=\"http:\/\/docs.emmet.io\/\">online documentation<\/a> is a great place to learn more.<\/p>\n<p>There are also a number of fantastic tutorials online. While most focus on using Emmet in the context of web design and development, the same principles can be applied to email design, as well. Here are a few of our favorites:<\/p>\n<ul>\n<li><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/spin.atomicobject.com\/2014\/04\/13\/easy-html-emmet\/\">Cool and Easy HTML with Emmet<\/a> article from Atomic Object<\/li>\n<li><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/css-tricks.com\/video-screencasts\/129-emmet-awesome\/\">Emmet (is Awesome)<\/a> screencast from CSS-Tricks<\/li>\n<li><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/www.smashingmagazine.com\/2013\/03\/goodbye-zen-coding-hello-emmet\/\">Goodbye Zen Coding, Hello, Emmet!<\/a> article from Smashing Magazine<\/li>\n<li><a rel=\"noopener\" target=\"_blank\" href=\"https:\/\/www.sitepoint.com\/series\/faster-workflow-mastering-emmet\/\">Faster Workflow: Mastering Emmet<\/a> series from SitePoint<\/li>\n<\/ul>\n<h2>Use Emmet Today<\/h2>\n<p>Interested in using Emmet in your own workflow? Litmus Builder has support for most Emmet features. Combined with our Instant Previews, it allows you to code and test campaigns in over 90 different email clients faster than ever before.<\/p>\n<p><a class=\"orange btn medium\" style=\"color: #fff; font-weight: bold;\" rel=\"noopener\" href=\"https:\/\/litmus.com\/email-builder\" target=\"_blank\" rel=\"noopener noreferrer\">Explore Litmus Builder \u2192<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before.<\/p>\n","protected":false},"author":3,"featured_media":56342,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"tags":[478,499],"blog_category":[53],"class_list":["post-4098","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-design","tag-email-coding","blog_category-tips-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>What Is Emmet? - Litmus<\/title>\n<meta name=\"description\" content=\"In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before. What is emmet? A tool that can help you write less code, for a more streamlined email workflow. Learn what it is and how you can use it with Litmus Builder.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.litmus.com\/blog\/what-is-emmet\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Is Emmet?\" \/>\n<meta property=\"og:description\" content=\"In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before. What is emmet? A tool that can help you write less code, for a more streamlined email workflow. Learn what it is and how you can use it with Litmus Builder.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.litmus.com\/blog\/what-is-emmet\" \/>\n<meta property=\"og:site_name\" content=\"Litmus\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/litmusapp\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-20T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-27T19:15:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1380\" \/>\n\t<meta property=\"og:image:height\" content=\"725\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@litmusapp\" \/>\n<meta name=\"twitter:site\" content=\"@litmusapp\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What Is Emmet? - Litmus","description":"In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before. What is emmet? A tool that can help you write less code, for a more streamlined email workflow. Learn what it is and how you can use it with Litmus Builder.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.litmus.com\/blog\/what-is-emmet","og_locale":"en_US","og_type":"article","og_title":"What Is Emmet?","og_description":"In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before. What is emmet? A tool that can help you write less code, for a more streamlined email workflow. Learn what it is and how you can use it with Litmus Builder.","og_url":"https:\/\/www.litmus.com\/blog\/what-is-emmet","og_site_name":"Litmus","article_publisher":"https:\/\/www.facebook.com\/litmusapp","article_published_time":"2018-06-20T00:00:00+00:00","article_modified_time":"2023-07-27T19:15:05+00:00","og_image":[{"width":1380,"height":725,"url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@litmusapp","twitter_site":"@litmusapp","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#article","isPartOf":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet"},"author":{"name":"","@id":""},"headline":"What Is Emmet?","datePublished":"2018-06-20T00:00:00+00:00","dateModified":"2023-07-27T19:15:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet"},"wordCount":688,"commentCount":0,"publisher":{"@id":"https:\/\/www.litmus.com\/#organization"},"image":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#primaryimage"},"thumbnailUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png","keywords":["Design","Email Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.litmus.com\/blog\/what-is-emmet#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet","url":"https:\/\/www.litmus.com\/blog\/what-is-emmet","name":"What Is Emmet? - Litmus","isPartOf":{"@id":"https:\/\/www.litmus.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#primaryimage"},"image":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#primaryimage"},"thumbnailUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png","datePublished":"2018-06-20T00:00:00+00:00","dateModified":"2023-07-27T19:15:05+00:00","description":"In the quest to reduce the time between brainstorm and send, email marketers are on the hunt for tools to speed up their workflows. In this post, we look at how a tool called Emmet can help email designers code their campaigns faster than ever before. What is emmet? A tool that can help you write less code, for a more streamlined email workflow. Learn what it is and how you can use it with Litmus Builder.","breadcrumb":{"@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.litmus.com\/blog\/what-is-emmet"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#primaryimage","url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png","contentUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2022\/12\/Emmet-logo-on-top-of-grey-background.png","width":1380,"height":725},{"@type":"BreadcrumbList","@id":"https:\/\/www.litmus.com\/blog\/what-is-emmet#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.litmus.com\/"},{"@type":"ListItem","position":2,"name":"What Is Emmet?"}]},{"@type":"WebSite","@id":"https:\/\/www.litmus.com\/#website","url":"https:\/\/www.litmus.com\/","name":"Litmus","description":"Are you getting the most out of your email marketing?","publisher":{"@id":"https:\/\/www.litmus.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.litmus.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.litmus.com\/#organization","name":"Litmus Software","url":"https:\/\/www.litmus.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.litmus.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.litmus.com\/wp-content\/uploads\/2025\/04\/featured-image.png","contentUrl":"https:\/\/www.litmus.com\/wp-content\/uploads\/2025\/04\/featured-image.png","width":600,"height":314,"caption":"Litmus Software"},"image":{"@id":"https:\/\/www.litmus.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/litmusapp","https:\/\/x.com\/litmusapp"]},{"@type":"Person","@id":""}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/4098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/comments?post=4098"}],"version-history":[{"count":4,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/4098\/revisions"}],"predecessor-version":[{"id":74421,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/posts\/4098\/revisions\/74421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/media\/56342"}],"wp:attachment":[{"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/media?parent=4098"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/tags?post=4098"},{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/www.litmus.com\/wp-json\/wp\/v2\/blog_category?post=4098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}