DEV Community

Cover image for Emmet Part 1 - Basics

Posted on • Updated on • Originally published at

Emmet Part 1 - Basics

Emmet is a FREE plugin for many popular code editors which helps you write HTML and CSS fast! Emmet has support for many editors, including Sublime Text, Atom, Visual Studio Code, and many others. VS Code comes with Emmet pre-installed.

When you start typing an Emmet abbreviation, you will see the abbreviation displayed in the suggestion list.

Alt Text

In this post we cover the following topics:
πŸ“Œ Tags
πŸ“Œ Siblings
πŸ“Œ Children
πŸ“Œ Class
πŸ“Œ Id
πŸ“Œ Id & Class
πŸ“Œ Content
πŸ“Œ Multiplyβ €β €β €β €β €β €

Part 2 coming soon!


Basic abbreviations can be used to quickly create HTML tags.

  • div

  • p

  • h1



To create a set of HTML tags as siblings just use + in between each abbreviation.

  • hdr+sect+ftr



Child elements can be created by using > in between each abbreviation.

  • sect>ul>li



In order to create elements with classes just append the class to the abbreviation using .


    <h1 class="center"></h1>


To add an Id to an element, append the Id to the abbreviation using #

  • h1#header

    <h1 id="header"></h1>

Id & Class

You can include multiple attributes on an element abbreviation.


    <h1 id="header" class="center"></h1>


Text content of an element can be included by wrapping the content with { }

  • p{This is a paragraph.}

    <p>This is a paragraph.</p>


We can create multiple elements by multiplying them using *

  • ul>li*4


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

Thanks for reading!

Say Hello! Instagram | Twitter | YouTube

Top comments (3)

heallz1 profile image

Pretty interesting, very useful to get faster when building structures

codestackr profile image

More advanced techniques will be in the next part..

zgparsons profile image
Zachary Parsons

Thank you! I keep meaning to learn all of these abbreviations, and this will help!