tag
Browse / Emmet Cheatsheet
Emmet Cheatsheet
Unlock lightning-fast coding with Emmet! This cheatsheet covers essential HTML and CSS abbreviations, operators, and tips to dramatically speed up your web development workflow.
HTML Abbreviation Basics
Basic Elements & Nesting
|
Basic HTML tag. Example:
Expands to:
|
|
Nested element. Example:
Expands to:
|
|
Multiple levels of nesting. Example:
Expands to:
|
|
Sibling element. Example:
Expands to:
|
|
Multiplication. Example:
Expands to:
|
|
Combined nesting and multiplication. Example:
Expands to:
|
|
Combined sibling and multiplication. Example:
Expands to:
|
|
A contains B, and C is sibling of B. Example:
Expands to:
|
Attributes & Text
|
Element with an ID. Example:
Expands to:
|
|
Element with a class. Example:
Expands to:
|
|
Element with multiple classes. Example:
Expands to:
|
|
Custom attribute with value. Example:
Expands to:
|
|
Element with text content. Example:
Expands to:
|
|
Combined attributes and text. Example:
Expands to:
|
|
Combined ID, Class, and Text (Implicit tag is Example:
Expands to:
|
Grouping & Up Operators
|
Grouping elements. Example:
Expands to:
|
|
Go up one level. Example:
Expands to:
|
|
Go up multiple levels. Example:
Expands to:
|
|
Grouping with nesting. Example:
Expands to:
|
|
Combined grouping and up operator. Example:
Expands to:
|
|
Complex table structure. Example:
Expands to:
|
Implicit Tags
|
Expands to |
|
Expands to |
|
Expands to |
|
Expands to |
|
Expands to |
|
Expands to |
|
Expands to |
HTML Numbering & Lorem Ipsum
Numbering ($ Operator)
|
Adds a number counter. Example:
Expands to:
|
|
Pads numbers with leading zeros. Example:
Expands to:
|
|
Sets the starting number. Example:
Expands to:
|
|
Reverses the counter order. Example:
Expands to:
|
|
Reverses counter and sets starting number. Example:
Expands to:
|
|
Combined with nesting. Example:
Expands to:
|
|
Numbering within text content. Example:
Expands to:
|
Lorem Ipsum
|
Generates 30 words of lorem ipsum text. |
|
Generates N words of lorem ipsum. Example:
Expands to 10 words of lorem ipsum. |
|
Generates lorem ipsum inside a paragraph. Example:
Expands to:
|
|
Combined with other operators. Example:
Expands to two paragraphs, each with 10 words of lorem ipsum. |
Common HTML Aliases
|
HTML5 doctype and basic structure. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSS Abbreviations
Basic Properties & Values
|
padding: ; Example: |
|
margin: ; Example: |
|
width: ; Example: |
|
height: ; Example: |
|
display: ; Example: |
|
position: ; Example: |
|
font-size: ; Example: |
|
color: ; Example: |
Value Operators
|
Unit aliases appended directly. Example: |
|
Separator for multiple values. Example: |
|
Adds Example: |
|
Hex color. Example: |
|
Hex color alias (e.g., Example: |
|
RGB color. Example: |
|
RGBA color. Example: |
|
HSL color. Example: |
|
HSLA color. Example: |
Common CSS Aliases
|
@font-face {} |
|
@media screen {} |
|
position: absolute; |
|
position: fixed; |
|
position: relative; |
|
position: static; |
|
display: none; |
|
display: block; |
|
display: inline; |
|
display: inline-block; |
|
box-sizing: border-box; |