diff --git a/tools/emmet.md b/tools/emmet.md index 41fcbb2..c38731d 100644 --- a/tools/emmet.md +++ b/tools/emmet.md @@ -100,3 +100,47 @@ Items can be grouped together using `()` ``` + +### Class and ID +Class and Id in Emmet can be done using `.` and `#` + +`div.heading` + +```html +
+``` + +`div#heading` + +```html +
+``` + +ID and Class can also be combined together + +`div#heading.center` + +```html +
+``` + +### Adding Content inside tags +Contents inside tags can be added using `{}` + +`h1{Emmet is awesome}+h2{Every front end developers should use this}+p{This is paragraph}*2` + +```HTML +

Emmet is awesome

+

Every front end developers should use this

+

This is paragraph

+

This is paragraph

+``` + +### Attributes inside HTML tags +Attributes can be added using `[]` + +`a[href=https://google.com data-toggle=something target=_blank]` + +```HTML + +```