More Related Content
Similar to Emmet cheat-sheet (20)
Emmet cheat-sheet
- 1. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
← Emmet Documentation
Syntax
Child: >
nav>ul>li
Sibling: +
div+p+bq
Climb-up: ^
div+div>p>span+em^bq
div+div>p>span+em^^bq
Grouping: ()
div>(header>ul>li*2>a)+footer>p
(div>dl>(dt+dd)*3)+footer>p
h$[title=item$]{Header $}*3
ul>li.item$$$*5
ID and CLASS attributes
#header
.title
form#search.wide
p.class1.class2.class3
Custom attributes
p[title="Hello world"]
td[rowspan=2 colspan=3 title]
[a='value1' b="value2"]
Text: {}
a{Click me}
p>{Click }+a{here}+{ to continue}
Implicit tag names
<nav>
<ul>
<li></li>
</ul>
</nav>
<div></div>
<p></p>
<blockquote></blockquote>
<div></div>
<div>
<p><span></span><em></em></p>
<blockquote></blockquote>
</div>
<div></div>
<div>
<p><span></span><em></em></p>
</div>
<blockquote></blockquote>
<div>
<header>
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</header>
<footer>
<p></p>
</footer>
</div>
<div>
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
</div>
- 2. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
Multiplication: *
ul>li*5
Item numbering: $
ul>li.item$*5
.class
em>.class
ul>.class
table>.row>.col
HTML
All unknown abbreviations will be transformed to tag, e.g. foo → <foo></foo>.
!
a
a:link
a:mail
abbr
acronym
base
bdo
bdo:r
cap
colg
fst, fset
btn
optg
opt
tarea
<footer>
<p></p>
</footer>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul>
<li class="item1"></li>
<li class="item2"></li>
<li class="item3"></li>
<li class="item4"></li>
<li class="item5"></li>
</ul>
<h1 title="item1">Header 1</h1>
<h2 title="item2">Header 2</h2>
<h3 title="item3">Header 3</h3>
<ul>
<li class="item001"></li>
<li class="item002"></li>
<li class="item003"></li>
<li class="item004"></li>
<li class="item005"></li>
</ul>
<div id="header"></div>
<div class="title"></div>
<form id="search" class="wide"></form>
<p class="class1 class2 class3"></p>
<p title="Hello world"></p>
<td rowspan="2" colspan="3" title=""></td>
Alias of html:5
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Document </title>
</head>
<body>
</body>
</html>
<a href=" "> </a>
<a href="http:// "> </a>
<a href="mailto: "> </a>
<abbr title=" "> </abbr>
<acronym title=" "> </acronym>
<base href=" " />
<bdo dir=" "> </bdo>
- 3. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
bdo:l
link
link:css
link:print
link:favicon
link:touch
link:rss
link:atom
meta:utf
meta:win
meta:compat
style
script
script:src
img
iframe
leg
sect
art
hdr
ftr
adr
dlg
str
prog
datag
datal
kg
out
<div a="value1" b="value2"></div>
<a href="">Click me</a>
<p>Click <a href="">here</a> to continue</p>
<div class="class"></div>
<em><span class="class"></span></em>
<ul>
<li class="class"></li>
</ul>
<table>
<tr class="row">
<td class="col"></td>
</tr>
</table>
<bdo dir="rtl"> </bdo>
<bdo dir="ltr"> </bdo>
<link rel="stylesheet" href=" " />
<link rel="stylesheet" href=" style .css"
media="all" />
<link rel="stylesheet" href=" print .css"
media="print" />
<link rel="shortcut icon" type="image/x-icon"
href=" favicon.ico " />
<link rel="apple-touch-icon" href=" favicon.png "
/>
<link rel="alternate" type="application/rss+xml"
title="RSS" href=" rss.xml " />
<link rel="alternate" type="application/atom+xml"
title="Atom" href=" atom.xml " />
<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Type"
content="text/html;charset=windows-1251" />
<meta http-equiv="X-UA-Compatible" content=" IE=7
" />
<style> </style>
<script> </script>
<script src=" "> </script>
<img src=" " alt=" " />
<iframe src=" " frameborder="0"> </iframe>
- 4. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
embed
object
param
map
area
area:d
area:c
area:r
area:p
form
form:get
form:post
label
input
input:hidden, input:h
input:text, input:t
input:search
input:email
input:url
det
cmd
ol+
ul+
dl+
map+
table+
colgroup+, colg+
tr+
select+
<embed src=" " type=" " />
<object data=" " type=" "> </object>
<param name=" " value=" " />
<map name=" "> </map>
<area shape=" " coords=" " href=" " alt=" " />
<area shape="default" href=" " alt=" " />
<area shape="circle" coords=" " href=" " alt=" "
/>
<area shape="rect" coords=" " href=" " alt=" " />
<area shape="poly" coords=" " href=" " alt=" " />
<form action=" "> </form>
<form action=" " method="get"> </form>
<form action=" " method="post"> </form>
<label for=" "> </label>
<input type=" " />
<input type="hidden" name=" " />
<input type="text" name=" " id=" " />
<input type="search" name=" " id=" " />
<input type="email" name=" " id=" " />
<input type="url" name=" " id=" " />
- 5. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
input:password, input:p
input:datetime
input:date
input:datetime-local
input:month
input:week
input:time
input:number
input:color
input:checkbox, input:c
input:radio, input:r
input:range
input:file, input:f
input:submit, input:s
input:image, input:i
input:reset
input:button, input:b
select
option
optgroup+, optg+
c
cc:ie6
cc:ie
cc:noie
html:4t
html:4s
html:xt
<input type="password" name=" " id=" " />
<input type="datetime" name=" " id=" " />
<input type="date" name=" " id=" " />
<input type="datetime-local" name=" " id=" " />
<input type="month" name=" " id=" " />
<input type="week" name=" " id=" " />
<input type="time" name=" " id=" " />
<input type="number" name=" " id=" " />
<input type="color" name=" " id=" " />
<input type="checkbox" name=" " id=" " />
<input type="radio" name=" " id=" " />
<input type="range" name=" " id=" " />
<input type="file" name=" " id=" " />
<input type="submit" value=" " />
<input type="image" src=" " alt=" " />
<input type="reset" value=" " />
<input type="button" value=" " />
<select name=" " id=" "> </select>
<option value=" "> </option>
- 6. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
textarea
menu:context, menu:c
menu:toolbar, menu:t
video
audio
html:xml
bq
acr
fig
figc
ifr
emb
obj
src
html:xs
html:xxs
html:5
CSS
CSS module uses fuzzy search to find unknown abbreviations, e.g. ov:h == ov-h == ovh == oh.
If abbreviation wasn’t found, it is transformed into property name: foo-bar → foo-bar: |;
<textarea name=" " id=" " cols=" 30 " rows=" 10 ">
</textarea>
<menu type="context"> </menu>
<menu type="toolbar"> </menu>
<video src=" "> </video>
<audio src=" "> </audio>
<html xmlns="http://www.w3.org/1999/xhtml">
</html>
Alias of blockquote
<blockquote> </blockquote>
Alias of acronym
<acronym title=" "> </acronym>
Alias of figure
<figure> </figure>
Alias of figcaption
<figcaption> </figcaption>
Alias of iframe
<iframe src=" " frameborder="0"> </iframe>
Alias of embed
<embed src=" " type=" " />
Alias of object
<object data=" " type=" "> </object>
Alias of source
<source> </source>
Alias of caption
- 11. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
ff:c
ff:f
ff:m
fef
fef:n
fef:eg
fef:eb
fef:o
fem
femp
femp:b
femp:a
fems
fems:n
fems:ac
fems:dt
fems:c
fems:ds
fsm
fsm:a
fsm:n
fsm:aw
fst
fst:n
fst:uc
fst:ec
fst:c
fst:sc
fst:se
fst:e
fst:ee
fst:ue
va
va:sup
va:t
va:tt
bds:r
bds:i
bds:o
bdw
bdt, bt
bdt+
bdt:n
bdtw
bdts
bdts:n
bdtc
bdr, br
bdr+
bdr:n
bdrw
bdrs:n
bdrc
bdb, bb
bdb+
bdb:n
bdbw
bdbs
bdbs:n
bdbc
bdl, bl
bdl+
bdl:n
bdlw
bdls
bdls:n
bdlc
bdrs
bdtrrs
bdtlrs
bdbrrs
bdblrs
Text
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="${lang}">
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=${charset}" />
<title> Document </title>
</head>
<body>
${child}
</body>
</html>
<!doctype html>
<html lang="${lang}">
<head>
<meta charset="${charset}">
<title> Document </title>
</head>
<body>
${child}
</body>
</html>
font-family:cursive;
font-family:fantasy;
font-family:monospace;
font-effect: ;
font-effect:none;
font-effect:engrave;
font-effect:emboss;
font-effect:outline;
font-emphasize: ;
font-emphasize-position: ;
font-emphasize-position:before;
font-emphasize-position:after;
font-emphasize-style: ;
font-emphasize-style:none;
font-emphasize-style:accent;
font-emphasize-style:dot;
font-emphasize-style:circle;
font-emphasize-style:disc;
font-smooth: ;
font-smooth:auto;
font-smooth:never;
font-smooth:always;
font-stretch: ;
font-stretch:normal;
font-stretch:ultra-condensed;
font-stretch:extra-condensed;
font-stretch:condensed;
font-stretch:semi-condensed;
font-stretch:semi-expanded;
font-stretch:expanded;
font-stretch:extra-expanded;
font-stretch:ultra-expanded;
vertical-align: ;
vertical-align:super;
vertical-align:top;
vertical-align:text-top;
- 14. Cheat Sheet
http://docs.emmet.io/cheat-sheet/[17/02/2013 12:03:50]
XSL
tm
tmatch
tn
tname
call
ap
api
imp
inc
ch
xsl:when
wh
ot
if
par
pare
var
elem
attr
attrs
cp
co
val
each
for
tex
com
msg
fall
num
nam
pres
strip
proc
sort
white-space-collapse:break-all;
word-break: ;
word-break:normal;
word-break:keep-all;
word-break:loose;
word-break:break-strict;
word-break:break-all;
word-spacing: ;
word-wrap: ;
word-wrap:normal;
word-wrap:none;
word-wrap:unrestricted;
word-wrap:suppress;
background: ;
background: #fff url( ) 0 0
no-repeat ;
background:none;
background-color:# fff ;
background-image:url( );
background-image:none;
background-repeat: ;
background-repeat:no-repeat;
background-repeat:repeat-x;
background-repeat:repeat-y;
background-attachment: ;
background-attachment:fixed;
background-attachment:scroll;
background-position: 0 0 ;
background-position-x: ;
background-position-y: ;
background-break: ;
background-break:bounding-box;
background-break:each-box;
background-break:continuous;
background-clip: ;
background-clip:border-box;
<xsl:template match=" " mode=" "> </xsl:template>
Alias of tm
<xsl:template match=" " mode=" "> </xsl:template>
<xsl:template name=" "> </xsl:template>
Alias of tn
<xsl:template name=" "> </xsl:template>
<xsl:call-template name=" " />
<xsl:apply-templates select=" " mode=" " />
<xsl:apply-imports />
<xsl:import href=" " />
<xsl:include href=" " />
<xsl:choose> </xsl:choose>
<xsl:when test=" "> </xsl:when>
Alias of xsl:when
<xsl:when test=" "> </xsl:when>
<xsl:otherwise> </xsl:otherwise>
<xsl:if test=" "> </xsl:if>
<xsl:param name=" "> </xsl:param>
<xsl:param name=" " select=" " />
<xsl:variable name=" "> </xsl:variable>