Top 5 useful Emmet Abbreviations

shreyazz

Shreyas Pahune

Posted on June 10, 2021

Top 5 useful Emmet Abbreviations

There are many Web Developers out there who are beginning their journey and are wasting a lot of time on the same boring HTML code, but after this blog, the coding process will become respectably fast for you, so here are some Emmet abbreviations.

Before moving any further let me explain what is Emmet.
Emmet is a set of plugins that is very helpful for Web-Developers to accomplish high-speed coding, we just have to write small abbreviations and the Emmet will auto-complete for you.

1) .container (.className) :
This will make a div with the class name of container.
Class Photo

2) #container (#idName) :
This will make a div with the id of container.
Id photo

3) .header>ul>li*4 :
This will make a div with a class of header and then nest a ul tag which will consist of 4 li tags.
nest photo

4.) .main>.top+.bottom :
This will make a div with the main class and then make two sibling elements a div with top class and a div with bottom class.
sibling photo

5.) .header>(div.links>a{Google})+.footer :
This will make a div with header class and then inside it, there will be 2 elements created, a div with links class name and an a tag which will have the content Google and a footer as a sibling of the .links div
inside photo

Do visit the community made by me and my friend @sumeet16 for more amazing and informative stuff, and if you wanna recommend something or give feedback, feel free to comment😇!

CodeBox's handles:
https://linktr.ee/CodeBox

💖 💪 🙅 🚩
shreyazz
Shreyas Pahune

Posted on June 10, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

What is  Anchor tag ?
webdev What is Anchor tag ?

July 25, 2021

Top 5 useful Emmet Abbreviations