Emmet for HTML:
Creating an element by its name: In HTML, as you type in the name of the HTML tag, you will get a suggestion list, select the element that you want to insert from the suggestion list. For example, if you type h1 and click enter to get the <h1></h1>. You can do this for all HTML tags as well.
Creating an element by its class name: In HTML, if you want to create an element with a particular class name then first enter the name of the element and '. ' and the name of the class which you like to give to the element and hit enter. The element will be created with the class name you specified.
Creating an element by its id: In HTML, if you want to create an element with a particular id then first enter the name of the element and ' # ' and the id which you like to give to the element and hit enter. The element will be created with the id you specified.
Creating Multiple elements: If you want to create multiple elements using emmet then specify the name of the element and " * " and specify how many elements of that type you want and hit enter.
Creating nested elements: You can create nested elements by using " > " and type the outer element name and enter " > " and enter inner elements and hit enter to get the desired output.
Emmet in CSS:
In CSS, when you start typing, Emmet starts giving you suggestions where you can select and hit enter. In CSS, you can get both the property name and value in suggestions.