Docsity

Emmet Cheat Sheet: A Comprehensive Guide to Efficient HTML Coding, Schemes and Mind Maps of Art

Toggle sidebar
bg1
Emmet Cheat Sheet
Syntax
Child: >
nav>ul>li
<nav>
<ul>
<li></li>
</ul>
</nav>
Sibling: +
div+p+bq
<div></div>
<p></p>
<blockquote></blockquote>
Climb-up: ^
div+div>p>span+em^bq
<div></div>
<div>
<p><s pan></s pan><em ></em></p>
<blockquote></blo ckquote>
</div>
div+div>p>span+em^^bq
<div></div>
<div>
<p><s pan></s pan><em ></em></p>
</div>
<blockquote></blockquote>
Grouping: ()
div>(header>ul>li*2>a)+foo ter>p
<div>
<header>
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f

Partial preview of the text

Download Emmet Cheat Sheet: A Comprehensive Guide to Efficient HTML Coding and more Schemes and Mind Maps Art in PDF only on Docsity!

Emmet Cheat Sheet

Syntax

Child: >

nav>ul>li

Sibling: +

div+p+bq

Climb-up: ^

div+div>p>s pan+em^bq

div+div>p>s pan+em^^bq

Grouping: ()

div>(header>ul>li*2>a)+footer>p

(div>dl>(dt+dd)*3)+footer>p

Multiplication: *

ul>li*

Item numbering: $

ul>li.item$*

p.clas s 1.clas s 2.clas s 3

Custom attributes

p[title="Hello world"]

td[rows pan=2 cols pan=3 title]

[a='value1' b="value2"]

Text: {}

a{Click me} Click me p>{Click }+a{here}+{ to continue}

Click here to continue

Implicit tag names

.clas s

em>.clas s

ul>.clas s

table>.row>.col

HTML

All unknown abbreviations will be transformed to tag, e.g. foo → .

Alias of html:

DocumentDocument

a

a:link

a:mail

abbr

acronym

bas e

bas efont

br

meta

meta:utf

meta:win

meta:vp

meta:compat

s tyle

s cript

s cript:s rc

img

iframe

embed

object

param

map

area

area:d

area:c

area:r

area:p

form

form:get

form:pos t

label

input

inp

input:hidden Alias of input[type=hidden name]

input:h Alias of input:hidden

input:month Alias of inp[type=month]

input:week Alias of inp[type=week]

input:time Alias of inp[type=time]

input:number Alias of inp[type=number]

input:color Alias of inp[type=color]

input:checkbox Alias of inp[type=checkbox]

input:c Alias of input:checkbox

input:radio Alias of inp[type=radio]

input:r Alias of input:radio

input:range

Alias of inp[type=range]

input:file Alias of inp[type=file]

input:f Alias of input:file

input:s ubmit

input:s Alias of input:submit

input:image

input:i Alias of input:image

input:button

input:b Alias of input:button

is index

input:res et Alias of input:button[type=reset]

bq Alias of blockquote

acr Alias of acronym

fig Alias of figure

figc Alias of figcaption

ifr Alias of iframe

emb Alias of embed

obj Alias of object

s rc Alias of source

cap Alias of caption

colg Alias of colgroup

fs t, fs et Alias of fieldset

btn Alias of button

btn:b Alias of button[type=button]

btn:r Alias of button[type=reset]

btn:s Alias of button[type=submit]

optg Alias of optgroup

opt Alias of option

tarea Alias of textarea

leg

datal Alias of datalist

kg Alias of keygen

out Alias of output

det Alias of details

cmd Alias of command

doc Alias of html>(head>meta[charset=UTF-8]+title{${1:Document}})+body

DocumentDocument

doc Alias of html>(head>meta[http-equiv="C ontent-Type" content="text/html;charset=${charset}"]+title{${1:Document}})+body

DocumentDocument

html:4t Alias of !!!4t+doc4[lang=${lang}]

DocumentDocument

html:4s Alias of !!!4s+doc4[lang=${lang}]

DocumentDocument

html:xt Alias of !!!xt+doc4[xmlns=http://www.w3.org/1999/xhtml xml:lang=${lang}]

DocumentDocument

Alias of ol>li

ul+ Alias of ul>li

dl+ Alias of dl>dt+dd

map+ Alias of map>area

table+ Alias of table>tr>td

colgroup+, colg+ Alias of colgroup>col

tr+ Alias of tr>td

s elect+ Alias of select>option

optgroup+, optg+ Alias of optgroup>option

!!!

!!!4t

!!!4s

!!!xt

!!!xs

!!!xxs

c

cc:ie