Top 5 useful Emmet Abbreviations

Top 5 useful Emmet Abbreviations

ยท

2 min read

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


Thank you so much for reading the whole blog ๐ŸŽ‰, if you liked it, do share it with your developer friends!


ย