Docsity

HTML5 Elements Cheat Sheet, Study notes of Art

Toggle sidebar
bg1
8/11/2015 Cheat Sheet
http://docs.emmet.io/cheat-sheet/ 1/19
nav>ul>li
<nav>
<ul>
<li></li>
</ul>
</nav>
div+p+bq
<div></div>
<p></p>
<blockquote></blockquote>
div+div>p>span+em^bq
<div></div>
<div>
<p><span></span><em></em></p>
<blockquote></blockquote>
</div>
div+div>p>span+em^^bq
<div></div>
<div>
<p><span></span><em></em></p>
</div>
<blockquote></blockquote>
div>(header>ul>li*2>a)+footer>p
<div>
<header>
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</header>
<footer>
<p></p>
</footer>
</div>
(div>dl>(dt+dd)*3)+footer>p
<div>
<dl>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
<dt></dt>
<dd></dd>
</dl>
</div>
<footer>
<p></p>
</footer>
ul>li*5
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
Syntax
Child:>
Sibling:+
Climbup:^
Grouping:()
Multiplication:*
Itemnumbering:$
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download HTML5 Elements Cheat Sheet and more Study notes Art in PDF only on Docsity!

nav>ul>li

div+p+bq

div+div>p>span+em^bq

div+div>p>span+em^^bq

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

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

ul>li* 5

Syntax

Child: >

Sibling: +

Climb up: ^

Grouping: ()

Multiplication: *

Item numbering: $

ul>li.item$* 5

h$[title=item$]{Header $}* 3 Header 1 Header 2 Header 3 ul>li.item$$$* 5

ul>li.item$@-* 5

ul>li.item$@ 3 * 5

#header

.title

form#search.wide

p.class 1 .class 2 .class 3

p[title="Hello world"]

td[rowspan= 2 colspan= 3 title]

[a='value 1 ' b="value 2 "]

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

Click here to continue

.class

em>.class

ul>.class

table>.row>.col

ID and CLASS attributes

Custom attributes

Text: {}

Implicit tag names

HTML

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

source:media:sizes, src:mz

source:sizes:type, src:zt

iframe

embed

object

param

map

area

area:d

area:c

area:r

area:p

form

form:get

form:post

label

input

inp

input:hidden, input:h

Alias of input[type=hidden name]

input:text, input:t

Alias of inp

input:search

Alias of inp[type=search]

input:email

Alias of inp[type=email]

input:url

Alias of inp[type=url]

input:password, input:p

Alias of inp[type=password]

input:datetime

Alias of inp[type=datetime]

input:date

Alias of inp[type=date]

input:datetime-local

Alias of inp[type=datetime-local]

input:month

Alias of inp[type=month]

input:week

Alias of inp[type=week]

input:time

Alias of inp[type=time]

input:tel

Alias of inp[type=tel]

input:number

Alias of inp[type=number]

input:color

Alias of inp[type=color]

input:checkbox, input:c

Alias of inp[type=checkbox]

input:radio, input:r

Alias of inp[type=radio]

input:range

Alias of inp[type=range]

input:file, input:f

Alias of inp[type=file]

input:submit, input:s

input:image, input:i

input:button, input:b

isindex

input:reset

Alias of input:button[type=reset]

select

select:disabled, select:d

Alias of select[disabled.]

option, opt

textarea

marquee

menu:context, menu:c

Alias of menu[type=context]>

menu:toolbar, menu:t

Alias of menu[type=toolbar]>

video

audio

html:xml

keygen

command

button:submit, button:s, btn:s

Alias of button[type=submit]

button:reset, button:r, btn:r

Alias of button[type=reset]

button:disabled, button:d, btn:d

Alias of button[disabled.]

fieldset:disabled, fieldset:d, fset:d, fst:d

Alias of fieldset[disabled.]

bq

Alias of blockquote

fig

Alias of figure

figc

Alias of figcaption

pic

Alias of picture

ifr

Alias of iframe

emb

Alias of embed

obj

Alias of object

cap

Alias of caption

colg

Alias of colgroup

fst, fset

Alias of fieldset

btn

Alias of button

optg

Alias of optgroup

tarea

Alias of textarea

leg

Alias of legend

sect

Alias of section

doc 4

Alias of html>(head>meta[http-

equiv="Content-Type"

content="text/html;charset=${charset}"]+ti

tle{${ 1 :Document}})+body

Document

ri:dpr, ri:d

Alias of img:s

ri:viewport, ri:v

Alias of img:z

ri:art, ri:a

Alias of pic>src:m+img

ri:type, ri:t

Alias of pic>src:t+img

html: 4 t

Alias of !!! 4 t+doc 4 [lang=${lang}]

Document

html: 4 s

Alias of !!! 4 s+doc 4 [lang=${lang}]

Document

html:xt

Alias of

!!!xt+doc 4 [xmlns=http://www.w 3 .org/ 1999 /xh

tml xml:lang=${lang}]

Document

html:xs

Alias of

!!!xs+doc 4 [xmlns=http://www.w 3 .org/ 1999 /xh

tml xml:lang=${lang}]

Document

html:xxs

Alias of

!!!xxs+doc 4 [xmlns=http://www.w 3 .org/ 1999 /x

html xml:lang=${lang}]

Document

html: 5

Alias of !!!+doc[lang=${lang}]

Document

ol+

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

select+

Alias of select>option

optgroup+, optg+

Alias of optgroup>option

pic+

Alias of picture>source:srcset+img

!!!

!!! 4 t

!!! 4 s

!!!xt

!!!xs

!!!xxs

c

ovy:v (^) overflow-y:visible; ovy:h (^) overflow-y:hidden; ovy:s (^) overflow-y:scroll; ovy:a (^) overflow-y:auto; ovs (^) overflow-style: scrollbar ; ovs:a (^) overflow-style:auto; ovs:s (^) overflow-style:scrollbar; ovs:p (^) overflow-style:panner; ovs:m (^) overflow-style:move; ovs:mq (^) overflow-style:marquee; zoo, zm (^) zoom: 1 ; cp (^) clip: ; cp:a (^) clip:auto; cp:r (^) clip:rect( top right bottom left ); rsz (^) resize: ; rsz:n (^) resize:none; rsz:b resize:both; rsz:h resize:horizontal; rsz:v (^) resize:vertical; cur (^) cursor:${pointer}; cur:a (^) cursor:auto; cur:d (^) cursor:default; cur:c (^) cursor:crosshair; cur:ha (^) cursor:hand; cur:he (^) cursor:help; cur:m (^) cursor:move; cur:p (^) cursor:pointer; cur:t (^) cursor:text; m (^) margin: ; m:a (^) margin:auto; mt (^) margin-top: ; mt:a (^) margin-top:auto; mr (^) margin-right: ; mr:a (^) margin-right:auto; mb (^) margin-bottom: ; mb:a (^) margin-bottom:auto; ml (^) margin-left: ; ml:a (^) margin-left:auto; p (^) padding: ; pt (^) padding-top: ; pr padding-right: ; pb padding-bottom: ; pl padding-left: ; bxz (^) box-sizing: border-box ; bxz:cb (^) box-sizing:content-box; bxz:bb (^) box-sizing:border-box; bxsh (^) box-shadow: inset hoff voff blur color ; bxsh:r (^) box-shadow: inset hoff voff blur spread rgb( 0 , 0 , 0 ); bxsh:ra (^) box-shadow: inset h v blur spread rgba( 0 , 0 , 0 ,. 5 ); bxsh:n box-shadow:none; w width: ; w:a (^) width:auto; h (^) height: ; h:a (^) height:auto; maw (^) max-width: ; maw:n (^) max-width:none; mah (^) max-height: ; mah:n (^) max-height:none; miw (^) min-width: ; mih (^) min-height: ; f (^) font: ; f+ (^) font: 1 em Arial,sans-serif ; fw (^) font-weight: ; fw:n (^) font-weight:normal; fw:b (^) font-weight:bold; fw:br (^) font-weight:bolder; fw:lr (^) font-weight:lighter; fs (^) font-style:${italic}; fs:n (^) font-style:normal; fs:i (^) font-style:italic;

Margin & Padding

Box Sizing

Font

fs:o (^) font-style:oblique; fv (^) font-variant: ; fv:n (^) font-variant:normal; fv:sc (^) font-variant:small-caps; fz (^) font-size: ; fza (^) font-size-adjust: ; fza:n (^) font-size-adjust:none; ff (^) font-family: ; ff:s (^) font-family:serif; ff:ss font-family:sans-serif; ff:c font-family:cursive; ff:f font-family:fantasy; ff:m (^) font-family:monospace; ff:a (^) font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; ff:t (^) font-family: "Times New Roman", Times, Baskerville, Georgia, serif; ff:v (^) font-family: Verdana, Geneva, sans-serif; fef (^) font-effect: ; fef:n (^) font-effect:none; fef:eg (^) font-effect:engrave; fef:eb (^) font-effect:emboss; fef:o (^) font-effect:outline; fem (^) font-emphasize: ; femp (^) font-emphasize-position: ; femp:b font-emphasize-position:before; femp:a font-emphasize-position:after; fems font-emphasize-style: ; fems:n (^) font-emphasize-style:none; fems:ac (^) font-emphasize-style:accent; fems:dt (^) font-emphasize-style:dot; fems:c (^) font-emphasize-style:circle; fems:ds (^) font-emphasize-style:disc; fsm (^) font-smooth: ; fsm:a (^) font-smooth:auto; fsm:n (^) font-smooth:never; fsm:aw (^) font-smooth:always; fst (^) font-stretch: ; fst:n (^) font-stretch:normal; fst:uc (^) font-stretch:ultra-condensed; fst:ec font-stretch:extra-condensed; fst:c font-stretch:condensed; fst:sc font-stretch:semi-condensed; fst:se (^) font-stretch:semi-expanded; fst:e (^) font-stretch:expanded; fst:ee (^) font-stretch:extra-expanded; fst:ue (^) font-stretch:ultra-expanded; va (^) vertical-align: top ; va:sup (^) vertical-align:super; va:t (^) vertical-align:top; va:tt vertical-align:text-top; va:m vertical-align:middle; va:bl (^) vertical-align:baseline; va:b (^) vertical-align:bottom; va:tb (^) vertical-align:text-bottom; va:sub (^) vertical-align:sub; ta (^) text-align: left ; ta:l (^) text-align:left; ta:c (^) text-align:center; ta:r (^) text-align:right; ta:j (^) text-align:justify; ta-lst (^) text-align-last: ; tal:a text-align-last:auto; tal:l text-align-last:left; tal:c text-align-last:center; tal:r (^) text-align-last:right; td (^) text-decoration: none ; td:n (^) text-decoration:none; td:u (^) text-decoration:underline; td:o (^) text-decoration:overline; td:l (^) text-decoration:line-through; te (^) text-emphasis: ; te:n (^) text-emphasis:none; te:ac (^) text-emphasis:accent; te:dt (^) text-emphasis:dot; te:c text-emphasis:circle; te:ds text-emphasis:disc; te:b text-emphasis:before; te:a (^) text-emphasis:after; th (^) text-height: ; th:a (^) text-height:auto;

Text

bgbk (^) background-break: ; bgbk:bb (^) background-break:bounding-box; bgbk:eb (^) background-break:each-box; bgbk:c (^) background-break:continuous; bgcp (^) background-clip: padding-box ; bgcp:bb (^) background-clip:border-box; bgcp:pb (^) background-clip:padding-box; bgcp:cb background-clip:content-box; bgcp:nc background-clip:no-clip; bgo background-origin: ; bgo:pb (^) background-origin:padding-box; bgo:bb (^) background-origin:border-box; bgo:cb (^) background-origin:content-box; bgsz (^) background-size: ; bgsz:a (^) background-size:auto; bgsz:ct (^) background-size:contain; bgsz:cv (^) background-size:cover; c (^) color:# 000 ; c:r (^) color:rgb( 0 , 0 , 0 ); c:ra (^) color:rgba( 0 , 0 , 0 ,. 5 ); op (^) opacity: ; cnt (^) content:' '; cnt:n, ct:n (^) content:normal; cnt:oq, ct:oq (^) content:open-quote; cnt:noq, ct:noq (^) content:no-open-quote; cnt:cq, ct:cq (^) content:close-quote; cnt:ncq, ct:ncq (^) content:no-close-quote; cnt:a, ct:a (^) content:attr( ); cnt:c, ct:c (^) content:counter( ); cnt:cs, ct:cs (^) content:counters( ); ct (^) content: ; q (^) quotes: ; q:n (^) quotes:none; q:ru quotes:'\ 00 AB' '\ 00 BB' '\ 201 E' '\ 201 C'; q:en quotes:'\ 201 C' '\ 201 D' '\ 2018 ' '\ 2019 '; coi counter-increment: ; cor (^) counter-reset: ; ol (^) outline: ; ol:n (^) outline:none; olo (^) outline-offset: ; olw (^) outline-width: ; olw:tn (^) outline-width:thin; olw:m (^) outline-width:medium; olw:tc outline-width:thick; ols outline-style: ; ols:n outline-style:none; ols:dt (^) outline-style:dotted; ols:ds (^) outline-style:dashed; ols:s (^) outline-style:solid; ols:db (^) outline-style:double; ols:g (^) outline-style:groove; ols:r (^) outline-style:ridge; ols:i (^) outline-style:inset; ols:o (^) outline-style:outset; olc (^) outline-color:# 000 ; olc:i outline-color:invert; tbl (^) table-layout: ; tbl:a (^) table-layout:auto; tbl:f (^) table-layout:fixed; cps (^) caption-side: ; cps:t (^) caption-side:top; cps:b (^) caption-side:bottom; ec (^) empty-cells: ; ec:s (^) empty-cells:show; ec:h (^) empty-cells:hide; bd (^) border: ; bd+ (^) border: 1 px solid # 000 ; bd:n (^) border:none; bdbk (^) border-break: close ;

Color

Generated content

Outline

Tables

Border

bdbk:c (^) border-break:close; bdcl (^) border-collapse: ; bdcl:c (^) border-collapse:collapse; bdcl:s (^) border-collapse:separate; bdc (^) border-color:# 000 ; bdc:t (^) border-color:transparent; bdi (^) border-image:url( ); bdi:n border-image:none; bdti border-top-image:url( ); bdti:n border-top-image:none; bdri (^) border-right-image:url( ); bdri:n (^) border-right-image:none; bdbi (^) border-bottom-image:url( ); bdbi:n (^) border-bottom-image:none; bdli (^) border-left-image:url( ); bdli:n (^) border-left-image:none; bdci (^) border-corner-image:url( ); bdci:n (^) border-corner-image:none; bdci:c (^) border-corner-image:continue; bdtli (^) border-top-left-image:url( ); bdtli:n (^) border-top-left-image:none; bdtli:c (^) border-top-left-image:continue; bdtri border-top-right-image:url( ); bdtri:n border-top-right-image:none; bdtri:c border-top-right-image:continue; bdbri (^) border-bottom-right-image:url( ); bdbri:n (^) border-bottom-right-image:none; bdbri:c (^) border-bottom-right- image:continue; bdbli (^) border-bottom-left-image:url( ); bdbli:n (^) border-bottom-left-image:none; bdbli:c (^) border-bottom-left- image:continue; bdf (^) border-fit: repeat ; bdf:c (^) border-fit:clip; bdf:r (^) border-fit:repeat; bdf:sc (^) border-fit:scale; bdf:st (^) border-fit:stretch; bdf:ow border-fit:overwrite; bdf:of border-fit:overflow; bdf:sp border-fit:space; bdlen (^) border-length: ; bdlen:a (^) border-length:auto; bdsp (^) border-spacing: ; bds (^) border-style: ; bds:n (^) border-style:none; bds:h (^) border-style:hidden; bds:dt (^) border-style:dotted; bds:ds (^) border-style:dashed; bds:s (^) border-style:solid; bds:db (^) border-style:double; bds:dtds (^) border-style:dot-dash; bds:dtdtds (^) border-style:dot-dot-dash; bds:w border-style:wave; bds:g border-style:groove; bds:r border-style:ridge; bds:i (^) border-style:inset; bds:o (^) border-style:outset; bdw (^) border-width: ; bdt, bt (^) border-top: ; bdt+ (^) border-top: 1 px solid # 000 ; bdt:n (^) border-top:none; bdtw (^) border-top-width: ; bdts (^) border-top-style: ; bdts:n (^) border-top-style:none; bdtc (^) border-top-color:# 000 ; bdtc:t (^) border-top-color:transparent; bdr, br (^) border-right: ; bdr+ (^) border-right: 1 px solid

000 ;

bdr:n (^) border-right:none; bdrw (^) border-right-width: ; bdrst (^) border-right-style: ; bdrst:n (^) border-right-style:none; bdrc (^) border-right-color:# 000 ; bdrc:t (^) border-right-color:transparent; bdb, bb border-bottom: ; bdb+ (^) border-bottom: 1 px solid

000 ;

bdb:n (^) border-bottom:none; bdbw (^) border-bottom-width: ; bdbs (^) border-bottom-style: ; bdbs:n (^) border-bottom-style:none;

@i, @import (^) @import url( ); @kf (^) @-webkit-keyframes identifier { from { } to { } } @-o-keyframes identifier { from { } to { } } @-moz-keyframes identifier { from { } to { } } @keyframes identifier { from { } to { } } @m, @media (^) @media screen { } ac (^) align-content: ; ac:c (^) align-content:center; ac:fe (^) align-content:flex-end; ac:fs align-content:flex-start; ac:s (^) align-content:stretch; ac:sa (^) align-content:space-around; ac:sb (^) align-content:space-between; ai (^) align-items: ; ai:b align-items:baseline; ai:c (^) align-items:center; ai:fe (^) align-items:flex-end; ai:fs (^) align-items:flex-start; ai:s (^) align-items:stretch; anim (^) animation: ; anim- (^) animation: name duration timing-function delay iteration-count direction fill-mode ; animdel (^) animation-delay: time ; animdir (^) animation-direction: normal ; animdir:a (^) animation-direction:alternate; animdir:ar (^) animation-direction:alternate- reverse; animdir:n (^) animation-direction:normal; animdir:r (^) animation-direction:reverse; animdur (^) animation-duration: 0 s; animfm (^) animation-fill-mode: both ; animfm:b (^) animation-fill-mode:backwards; animfm:bt, animfm:bh (^) animation-fill- mode:both; animfm:f (^) animation-fill-mode:forwards; animic (^) animation-iteration-count: 1 ; animic:i (^) animation-iteration- count:infinite; animn (^) animation-name: none ; animps (^) animation-play-state: running ; animps:p (^) animation-play-state:paused; animps:r (^) animation-play-state:running; animtf (^) animation-timing-function: linear ; animtf:cb (^) animation-timing-function:cubic- bezier( 0. 1 , 0. 7 , 1. 0 ,

  1. 1 ); animtf:e (^) animation-timing-function:ease; animtf:ei animation-timing-function:ease- in; animtf:eio animation-timing-function:ease- in-out; animtf:eo animation-timing-function:ease- out; animtf:l animation-timing-function:linear; ap (^) appearance:${none}; as (^) align-self: ; as:a (^) align-self:auto; as:b (^) align-self:baseline; as:c (^) align-self:center; as:fe (^) align-self:flex-end; as:fs (^) align-self:flex-start; as:s (^) align-self:stretch; bfv (^) backface-visibility: ; bfv:h (^) backface-visibility:hidden; bfv:v backface-visibility:visible;

bg:ie (^) filter:progid:DXImageTransform.Mi crosoft.AlphaImageLoader(src=' x .png',sizingMethod=' crop '); cm (^) /* ${child} */ colm (^) columns: ; colmc (^) column-count: ; colmf (^) column-fill: ; colmg (^) column-gap: ; colmr (^) column-rule: ; colmrc column-rule-color: ; colmrs column-rule-style: ; colmrw column-rule-width: ; colms (^) column-span: ; colmw (^) column-width: ; d:ib+ (^) display: inline-block; *display: inline; *zoom: 1 ; fx flex: ; fxb flex-basis: ; fxd flex-direction: ; fxd:c (^) flex-direction:column; fxd:cr (^) flex-direction:column-reverse; fxd:r (^) flex-direction:row; fxd:rr (^) flex-direction:row-reverse; fxf (^) flex-flow: ; fxg (^) flex-grow: ; fxsh (^) flex-shrink: ; fxw (^) flex-wrap: ; fxw:n (^) flex-wrap:nowrap; fxw:w (^) flex-wrap:wrap; fxw:wr (^) flex-wrap:wrap-reverse; jc (^) justify-content: ; jc:c justify-content:center; jc:fe justify-content:flex-end; jc:fs justify-content:flex-start; jc:sa (^) justify-content:space-around; jc:sb (^) justify-content:space-between; mar (^) max-resolution: res ; mir (^) min-resolution: res ; op+ (^) opacity: ; filter: alpha(opacity= ); op:ie (^) filter:progid:DXImageTransform.Mi crosoft.Alpha(Opacity= 100 ); op:ms (^) - ms- filter:'progid:DXImageTransform.M icrosoft.Alpha(Opacity= 100 )'; ord (^) order: ; ori (^) orientation: ; ori:l (^) orientation:landscape; ori:p (^) orientation:portrait; tov text-overflow:${ellipsis}; tov:c text-overflow:clip; tov:e (^) text-overflow:ellipsis; trf (^) transform: ; trf:r (^) transform: rotate( angle ); trf:rx (^) transform: rotateX( angle ); trf:ry (^) transform: rotateY( angle ); trf:rz (^) transform: rotateZ( angle ); trf:sc (^) transform: scale( x , y ); trf:sc (^3) transform: scale 3 d( x , y , z ); trf:scx (^) transform: scaleX( x ); trf:scy (^) transform: scaleY( y ); trf:scz (^) transform: scaleZ( z ); trf:skx (^) transform: skewX( angle ); trf:sky (^) transform: skewY( angle ); trf:t (^) transform: translate( x , y ); trf:t (^3) transform: translate 3 d( tx , ty , tz ); trf:tx (^) transform: translateX( x ); trf:ty (^) transform: translateY( y ); trf:tz (^) transform: translateZ( z ); trfo (^) transform-origin: ; trfs (^) transform-style: preserve- 3 d ; trs (^) transition: prop time ; trsde (^) transition-delay: time ; trsdu (^) transition-duration: time ; trsp (^) transition-property: prop ; trstf (^) transition-timing-function: tfunc ; us (^) user-select:${none}; wfsm (^) - webkit-font- smoothing:${antialiased};

xsl

Alias of !!!+xsl:stylesheet[version= 1. 0

xmlns:xsl=http://www.w 3 .org/ 1999 /XSL/Trans

form]>{