HTML Cheatsheet
HTML Cheatsheet
HTML Cheatsheet
03
%attrs BLOCK ELEMENTS deprecated
%coreattrs elements
address information on author %attrs
%i18n applet
%events blockquote long quotation %attrs, cite center
dir
div generic container (block) %attrs, align* menu
%coreattrs
id dl definition list %attrs, compact* basefont
class font
style fieldset form control group %attrs isindex
title form interactive form %attrs, action, method, enctype, accept, s
name*, onsubmit, onreset, accept-charset, strike
%i18n target* u
xml:lang
lang h1-h6 six levels of headings %attrs, align* entities
dir " "
hr horizontal rule %attrs, align*, size*, width*, noshade*
& &
%ev ents noframes* alternate content for non %attrs < <
onclick frame-based rendering > >
ondblclick ' '
noscript content when scripts disabled %attrs
onmousedown
onmouseup ol ordered list %attrs, type*, start*, compact* (space)
onmouseover ¡ ¡
p paragraph %attrs, align* ¢ ¢
onmousemove
onmouseout pre preformatted text %attrs, width* £ £
onkeypress ¤ ¤
onkeydown ul unordered list %attrs, type*, compact* ¥ ¥
onkeyup ¦ ¦
INLINE ELEMENTS
§ §
%focus a anchor (or link) %attrs, charset, type, name, rel, rev, href, ¨ ¨
accesskey hreflang, target*, shape, coords, %focus © ©
tabindex ª ª
abbr abbreviation %attrs
onfocus « «
onblur acronym acronym (UNO, NATO,...) %attrs ¬ ¬
- (cond.) ­
b bold text %attrs ® ®
input types
text bdo I18N BiDi over-ride %coreattrs, %events, xml:lang, lang, dir ¯ ¯
password ° °
checkbox big large font %attrs ± ±
radio ¹ ¹
br forced line break %coreattrs, clear*
submit ² ²
image button push button %attrs, name, value, type, disabled, %focus ³ ³
reset ´ ´
cite citation or reference %attrs
button µ µ
hidden code computer code %attrs ¶ ¶
file · ·
dfn definition %attrs ¸ ¸
link types em emphasis %attrs º º
(rel, rev ) » »
alternate i italic text %attrs ¼ ¼
stylesheet ½ ½
iframe* inline subwindow %coreattrs, londesc, name, src, frameborder,
start ¾ ¾
marginwidth, marginheight, scrolling, align*,
next ¿ ¿
height, width
prev À À
contents img embedded image %attrs, src, alt, longdesc, name, height, Á Á
index width, usemap, ismap, align*, border*, Â Â
glossary hspace*, vspace* Ã Ã
copyright Ä Ä
input form control %attrs, type, name, value, checked, disabled,
chapter Å Å
readonly, size, maxlength, src, alt, ismap,
section Æ Æ
usemap, onselect, onchange, accept, %focus,
subsection Ç &C cedil;
align*
appendix È È
help kbd text to be entered by the user %attrs É É
bookmark Ê Ê
label form field label text %attrs, for, accesskey, onfocus, onblur Ë Ë
media descriptors map client-side image map %i18n, %events, id, class, style, title, name Ì Ì
screen Í Í
tty object generic embedded object %attrs, declare, classid, codebase, data, type, Î Î
tv codetype, archive, standby, height, width, Ï Ï
projection usemap, name, tabindex, align*, border*, Ð Ð
handheld hspace*, vspace* Ñ Ñ
print q short inline quotation %attrs, cite Ò Ò
braille Ó Ó
aural samp sample output from scripts %attrs Ô Ô
all Õ Õ
select option selector %attrs, name, size, multiple, disabled,
Ö Ö
tabindex, onfocus, onblur, onchange
× × small small font %attrs ⊆ ⊆
Ø Ø ⊇ ⊇
span generic container (inline) %attrs
Ù Ù ⊕ ⊕
Ú Ú strong indicates stronger emphasis %attrs ⊗ ⊗
Û Û ⊥ ⊥
Ü Ü sub subscript %attrs ⋅ ⋅
Ý Ý sup superscript %attrs ◊ ◊
Þ Þ
ß ß textarea multi-line text field %attrs, name, rows, cols, disabled, readonly, ⌈ ⌈
à à onselect, onchange, %focus ⌉ ⌉
á á ⌊ ⌊
tt teletype or monospaced text %attrs
â â ⌋ ⌋
ã ã var instance of a variable or %attrs 〈 ⟨
ä ä program argument 〉 ⟩
å å
TABLE ELEMENTS
æ æ ← ←
ç ç caption table caption %attrs, align* ↑ ↑
è è → →
é é col table column %attrs, span, width, valign, align, char, charoff
↓ ↓
ê ê colgroup table column group %attrs, span, width, valign, align, char, charoff ↔ ↔
ë ë ↵ ↵
ì ì table table element (block) %attrs, summary, width, border, frame, rules, ⇐ ⇐
í í cellspacing, cellpadding, align*, bgcolor* ⇑
î î tbody table body %attrs, align, char, charoff, valign ⇒ ⇒
ï ï ⇓
ð ð td table data cell %attrs, abbr, axis, headers, scope, rowspan, ⇔ ⇔
ñ ñ colspan, align, char, charoff, valign, bgcolor*,
ò ò nowrap*, width*, height* • •
ó ó ′ ′
tfoot table footer %attrs, align, char, charoff, valign
ô ô ‾ ‾
õ õ th table header cell %attrs, abbr, axis, headers, scope, rowspan, ⁄ ⁄
ö ö colspan, align, char, charoff, valign, bgcolor*, ℘ ℘
÷ ÷ nowrap*, width*, height* ℑ ℑ
ø ø ℜ ℜ
ù ù thead table header %attrs, align, char, charoff, valign
™ ™
ú ú tr table row %attrs, align, char, charoff, valign, bgcolor* € €
û û ℵ ℵ
ü ü OTHER ELEMENTS
♠ ♠
ý ý area image map area %attrs, shape, coords, href, nohref, alt, ♣ ♣
þ þ target*, %focus ♥ ♥
ÿ ÿ ♦ ♦
base document base URI href, id, target*
∀ ∀  
body document body %attrs, onload, onunload, background*,
∂ ∂  
bgcolor*, text*, link*, vlink*, alink*
∃ ∃  
∅ ∅ dd definition description %attrs ‌
∇ ∇ ‍
∈ ∈ del deleted text %attrs, cite, datetime
‎
∉ ∉ dt definition term %attrs ‏
∋ ∋ – –
∏ ∏ frame subwindow %coreattrs, longdesc, name, src, frameborder,
— —
∑ ∑ marginwidth, marginheight, noresize, scrolling
‘ ‘
− − frameset window subdivision %coreattrs, rows, cols, onload, onunload ’ ’
∗ ∗ ‚ ‚
√ √ head document head %i18n, id, profile “ “
∝ ∝ ” ”
html root element xmlns="http://www.w3.org/1999/xhtml", id,
∞ ∞ „ „
%i18n, version*
∠ ∡ † †
∧ ∧ ins inserted text %attrs, cite, datetime ‡ ‡
∨ ∨ … …
legend fieldset legend %attrs, accesskey, align*
∩ ∩ ‰ ‰
∪ ∪ li list item %attrs, type*, value* ‹ ‹
∫ ∫ › ›
∴ .˙. link media-independent link %attrs, charset, href, hreflang, type, rel, rev,
∼ ~ media, target*
≅ ≅ meta generic metainformation %i18n, id, http-equiv, name, content, scheme
≈ ≈ * deprec ated or
≠ ≠ optgroup option group %attrs, disabled, label not allowed in
≡ ≡ Stric t DT D if
option selectable choice %attrs, selected, disabled, label, value
≤ ≤ allowed in
param named property value id, name, value, valuetype, type T rans itional DT D
≥ ≥
⊂ ⊂ script script statements id, charset, type, src, defer, language* fixed value
⊃ ⊃
⊄ ⊄ style style info %i18n, id, type, media, title attribute required
title document title %i18n, id
boolean attribute
or empty element
© Florian Schmitz 2005 (comments to [email protected])