• Skip to main content

Rafal Tomal

Learn Design and Create Better Websites

  • About
  • Courses
  • Tools
  • Tips
  • Blog
  • Contact
  • Work With Me →

← More Design Tips

Write HTML/CSS faster

posted on April 6, 2018

TweetFacebookLinkedInPin

I hate writing HTML markup. I don’t write it that much these days like I used to, but still, sometimes we just have to type it in.

So, here’s my little secret weapon (well, not so secret anymore!): Emmet.

Emmet is a plugin to almost every known code editor that can help you speed up your HTML & CSS workflow. For example, you type in this:

#page>div.logo+ul#navigation>li*5>a{Item $}

Press your chosen shortcut key (I use OPTION+E) and Emmet converts it to:

<div id="page">
<div class="logo"></div>
<ul id="navigation">
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">Item 4</a></li>
<li><a href="">Item 5</a></li>
</ul>
</div>

Pretty sweet, huh?

It takes a bit of time to learn a new habit, but eventually, it becomes natural, and it’ll save you a lot of coding time.

Here’s a printable cheat sheet with all abbreviations: https://docs.emmet.io/cheat-sheet/

There are also so many other actions you can use on the code like moving your cursor between the closing and opening tag, merging multiple lines into one, or to comment out the entire block of code quickly.

tags: code

Previous tip: Forget everything you know
Next tip: Painting a picture

Don't Miss Future Design Tips

Join 20k+ people who love good design. Get my best tips, resources, and strategies to elevate your design skills and grow your business.

© Copyright 2008 - 2025 Rafal Tomal.

Affiliate Program . Privacy Policy . Cookie Policy . License .

Follow me on Twitter, Dribbble, and Instagram.

DISCLOSURE: I may be an affiliate for products that I recommend. If you purchase those items through my links I will earn a commission. You will not pay more when buying a product through my link. It helps me to continue to offer you lots of free stuff. Thank you, in advance for your support!