Skip to main content

Command Palette

Search for a command to run...

Mastering Emmet Syntax For Speed Up in Writing HTML

Emmet for HTML: A Beginner’s Guide to Writing Faster Markup

Updated
2 min read
Mastering Emmet Syntax For Speed Up in Writing HTML

Emmet is a toolkit that is built in many code editors (vs code, sublime, Atom) that helps us to write
abbreviation code which instantly expand to full html and css code.

Without the use of Emmet the workflow is very slow . you have to manually write all those HTML boilerplate code and manually write the completely full tag starting from angular brackets to close the angular brackets. The benefits of Emmet are :

  • it helps to complete the boilerplate code.

  • it completes the code with abbr. tag name like p for paragraph , img for image

  • it really speed our code writing and increase our speed and makes easier to write boring html with most fun way.

Some Emmet Shortcut for HTML

1 . for creating HTML documents (boilerplates)

Use ! exclamation mark for boilerplate.

2 . Create any Tag just by name

When you want any Element just type the name of tag like p= paragraph, img = image, inp = input It means just by some starting letter you get suggestions on code editors and when you press Tab or Enter key you get complete Element . In this way You can increase your speed on writing markup.

There are some relation We ca generate by using Emmet abbreviation :

- emmet shortcut:
  - create div : `div` 
  - create parent & child relation :
    div > P
  - create siblings : + 
    div+p+img
  - multiplication : *
    ul>Li*5{hello}
  - attribute operator : []
    a[href="]
  - text operator: {}
    h2{hello}
  - Numbering operator: $
    ul>li.item$*5
  - grouping operator: ()
    (header>ul>li*3)+footer>p{copyright &copy 2025}

Summary

Hence Emmet is very powerful toolkit that increase speed up the markup structure . we just have to learn the abbreviate format and apply daily basics for practice and muscle memory. It helps to write boring tag in immediate way and increase and increase our speed . so It is very useful for beginner because when they Knew it they work as professionals in the HTML and CSS syntax.

More Resources :

Emmet CheetSheet for HTML and CSS

Emmet Shortcut For Booming Your HTML Speed