From b70c19b7399a79fa80a6c9b1bcbbbe283506d0d0 Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Sun, 21 Jun 2020 20:15:24 +0530 Subject: [PATCH] Cheatsheet for Emmet created --- tools/emmet.md | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 tools/emmet.md diff --git a/tools/emmet.md b/tools/emmet.md new file mode 100644 index 0000000..7c25c24 --- /dev/null +++ b/tools/emmet.md @@ -0,0 +1,78 @@ +# EMMET +*The essential toolkit for web-developers* + +## Introduction +Emmet is a productivity toolkit for web developers that uses expressions to generate HTML snippets. + +## Installation +Normally, Emmet installation should be a straight-forward process from the package-manager as most of the modern text editors support Emmet. If you have difficulty setting up emmet with your editor and wish to check if emmet supports your favorite editor or not, you can check from here. [Emmet Installation instructions](https://emmet.io/download/) + +## Usage +You can use Emmet in two ways: +* Tab Expand Way: Type your emmet code and press `Tab` key +* Interactive Method: Press `alt + ctrl + Enter` and start typing your expressions. This should automatically generate HTML snippets on the fly. + +__This cheatsheet will assume that you press `Tab` after each expressions.__ + +## Basics + +### Generating HTML 5 Snippet +`html:5` +Will generate + +```HTML + + + + + + + Document + + + + + +``` + +### Child items +Child items are created using `>` + +`ul>li>p` + +```html + +``` + +### Sibling Items +Sibling items are created using `+` + +`html>head+body` + +```html + + + + + + +``` + +### Multiplication +Items can be multiplied by `*` + +`ul>li*5` + +```html + +```