If you haven’t read Emmet Basics Part 1, check that out first.

In this post, we cover the following topics:
📌 Boilerplates
📌 Climb Up
📌 Grouping
📌 Attributes
📌 Item Numbering
📌 Implicit Tags
📌 CSS Sneak Peek⠀⠀⠀⠀⠀⠀

Part 3 coming soon!


You can create a basic HTML boilerplate easily! <–

  • !
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />


Climb Up

With Emmet we can easily traverse multiple levels. Here we can climb up a level using ^

  • div+div>p>span+em^bq


We can achieve something similar by using grouping. To group, surround parts of the code with parenthesis.

  • div>(hdr>ul>li*2>a)+ftr>p
            <li><a href=""></a></li>
            <li><a href=""></a></li>


We can also easily add attributes to any tag using square brackets.

  • p[title=”Hello World”]
<p title="Hello World"></p>

Item Numbering

When multiplying items, an index is tracked. We can use the index by inserting the $ sign.

  • h$[title=item$]{Header $}*3
<h1 title="item1">Header 1</h1>
<h2 title="item2">Header 2</h1>
<h3 title="item3">Header 3</h1>

Implicit Tags

tags do not always need to be used. In some cases they are implied. Here we create a table with a row and a column without specifying the tr or td.

  • table>.row>.col
    <tr class="row">
        <td class="col"></td>

CSS Sneak Peek

Emmet can be used for CSS too! Part 3 will be all about fast CSS workflows.

  • pos
  • pos:s
  • pos:a
  • pos:r
  • pos:f

Part 3 coming very soon! Check out the full video on my YouTube channel.

Thanks for reading!

Say Hello! Instagram | Twitter | YouTube

Categories: Uncategorized


Leave a Reply

Your email address will not be published. Required fields are marked *