DEV Community

Cover image for Top 5 useful Emmet Abbreviations
Shreyas Pahune
Shreyas Pahune

Posted on • Updated on

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

Top comments (4)

Collapse
 
drsimplegraffiti profile image
Abayomi Ogunnusi

Thanks for this post...

Collapse
 
shreyazz profile image
Shreyas Pahune

More amazing posts coming up! Thanks by the way πŸ˜‰

Collapse
 
sumeet16 profile image
Sumeet Yadav

It was really informative bro. Keep it up!

Collapse
 
shreyazz profile image
Shreyas Pahune

Thanks bro πŸ”₯