HTML Code

HTML Code Cheat Sheet


Section 1

Tag Attributes Browsers Closing tag
<!DOCTYPE> no attributes All no
<HTML> no attributes All yes
<HEAD> no attributes All yes
<TITLE> no attributes All yes
<META> content, http-equiv, name, scheme All no
<STYLE> no attributes NN4, IE45 yes
<BODY> alink, background, bgcolor, bgproperties, leftmargin, link, text, topmargin, vlink All yes
<P> align All yes
<BR> clear All yes
<HR> align, noshade, size, width All no
<OL> compact, start, type All yes
<UL> compact, type All yes
<LI> type, vlaue All yes
<DT> no attributes All no
<DD> no attributes no
<ADDRESS> no attributes All yes
<BLOCKQUOTES> no attributes All yes
<CENTER> no attributes All yes
<!-- --> no attributes All yes
<COMMENT> no attributes IE345 yes
<DIV> align NN234, IE345 yes
<PRE> width All yes
<B> no attributes All yes
<BASEFONT> color, face, size All no
<BIG> no attributes NN234, IE345 yes
<BLINK> no attributes NN234 yes
<CITE> no attributes All yes
<CODE> no attributes All yes
<DFN> no attributes yes
<EM> no attributes All yes
<FONT> color, face, size All yes
<I> no attributes All yes
<KBD> no attributes NN234, IE245 yes
<S> no attributes NN34, IE45 yes
<STRIKE> no attributes NN34, IE2345 yes
<SAMP> no attributes NN234, IE245 yes
<SMALL> no attributes NN234, IE245 yes
<STRONG> no attributes All yes
<SUB> no attributes NN234, IE345 yes
<SUP> no attributes NN234, IE345 yes
<TT> no attributes All yes
<U> no attributes All yes
<IMG> align, alt, border, height, hspace, ismap, src, usemap, vspace, width, dynsrc, start, controls, loop, loopdelay All no
<A> href, name, target, title, method, rel, rev, urn All yes
<MAP> name All yes
<AREA> shape, coords, href, nohref All
<FORM> action, enctype, method All yes
<INPUT> type, name, value, align, checked, maxlength, size, src All yes
<SELECT> name, multiple, size All yes
<OPTION> selected, value All yes
<TABLE> align, background, bgcolor, border, bordercolor, bordercolorlight, bordercolordark, cellspacing, cellpadding, cols, frame, height, rules, style, width All yes
<TR> align, valign, backgroundcolor, bgcolor, bordercolor, bordercolorlight, bordercolordark, height, style All yes
<TD> align, colspan, rowspan, nowrap, background, bgcolor, brodercolor, bordercolorlight, bordercolordark, height, width, style, valign All yes
<CAPTION> align, valign All yes
<FRAMESET> cols, rows, frameborder, framespacing, bordercolor NN234, IE345 yes
<FRAME> frameborder, framespacing, marginwidth, marginheight, name, noresize, scrolling, src, bordercolor NN234, IE345 no
<NOFRAMES> no attributes NN234, IE345 yes
<IFRAME> width, height, hspace, vspace, align, frameborder, marginheight, marginwidth, noresize IE345 yes
<BGSOUND> src, loop IE2345 no
<MARQUEE> align, behavior, bgcolor, direction, height, hspace, loop, scrollamount, scrolldelay, vspace, width IE2345 yes
<EMBED> src, width, height, border, hspace, vspace, align, name, units NN234, IE345 yes
<DEL> no attributes IE45 yes
<INS> no attributes IE45 yes
<Q> cite IE45 yes
<BASE> href, target, All no
<LINK> href, methods, rev, rel, title, type, urn NN4, IE2345 no
<ABBR> title None yes
<ACRONYM> title None yes
<SPAN> no attributes NN4, IE45 yes
<VAR> no attributes All yes
<MULTICOL> cols, gutter, width NN234 yes
<NOBR> no attributes All yes
<WBR> no attributes All no
<DIR> no attributes All yes
<DL> compact All yes
<MENU> compact, type All yes
<APPLET> align, alt, code, codebase, height, hspace, name, vspace, width NN234, IE345 yes
<NOEMBED> no attributes NN234 yes
<NOSCRIPT> no attributes NN34, IE345 yes
<OBJECT> align, border, classid, codebase, data, height, hspace, name, type, uesmap, vspace, width All yes
<PARAM> name, value, type NN234, IE345 yes
<SCRIPT> type, language, src NN34, IE345 yes
<SPACER> type, size, height, width, align NN34 no
<COL> align, char, charoff, span, valign, width IE45 no
<COLGROUP> align, char, charoff, span, valign, width IE45 yes
<TBODY> align, char, charoff, valign IE45 yes
<TFOOT> align, char, charoff, valign IE45 yes
<TH> align, colspan, rowspan, nowrap, background, bgcolor, brodercolor, bordercolorlight, bordercolordark, height, width, style, valign All yes
<THEAD> align, char, charoff, valign IE45 yes
<BUTTON> name, value, type NN4, IE45 yes
<FIELDSET> no attributes IE45 Yes
<ISINDEX> no attributes All no
<LABEL> no attributes IE45 yes
<LEGEND> no attributes IE45 yes
<OPTGROUP> no attributes None yes
<TEXTAREA> cols, name, rows, wrap All yes







Section 2

Name Symbol Alpha Code Numerical Code
exclaimation mark ! &excl; &#33;
double quotes " &quot; &#34;
number sign # &num; &#35;
dollar sign $ &dollar; &#36;
percent sign % &percnt; &#37;
ampersand & &amp; &#38;
apostrophe ' &apos; &#39;
left parenthesis ( &lpar; &#40;
right parenthesis ) &rpar; &#41;
asterisk * &ast; &#42
plus sign + &plus; &#43;
comma , &comma; &#44;
minus or hyphen - &minus; or &hyphen; &#45;
period . &period; &#46;
slash / &sol; &#47;
colon : &colon; &#58;
semicolon ; &semi; &#59;
less than < &lt; &#60;
equals sign = &equals; &#61;
greater than > &gt; &#62;
question mark ? &quest; &#63;
at sign @ &commat; &#64;
left square bracket [ &lsqb; &#91;
backslash
&bsol; &#92;
right square bracket ] &rsqb; &#93;
caret ^ &circ; &#94;
underscore _ &lowbar; &#95;
acute accent ` &grave; &#96;
left curly brace { &lcub; &#123;
vertical bar | &verbar; &#124;
right curly brace } &rcub; &#125;
tilde ~ &tilde; &#126;
low horizontal ellipsis &hellip; &#133;
dagger mark &dagger; &#134;
double dagger mark &Dagger; &#135;
left single quote &lsquo; &#145;
right single quote &rsquo; &#146;
left double quote &ldquo; &#147;
right double quote &rdquo; &#148;
round filled bullet &bull; &#149;
en dash &ndash; &#150;
em dash &mdash; &#151;
trademark &trade; &#153;
non-breaking space
&nbsp; &#160;
inverted exclamation ¡ &iexcl; &#161;
cent sign ¢ &cent; &#162;
broken vertical bar ¦ &brvbar; &#166;
section sign § &sect; &#167;
umlaut ¨ &uml; &#168;
copyright symbol © &copy; &#169;
left angle quote « &laquo; &#171;
not sign ¬ &not; &#172;
registered trademark ® &reg; &#174;
degree sign ° &deg; &#176;
plus or minus ± &plusmn; &#177;
superscript two ² &sup2; &#178;
superscript three ³ &sup3; &#179;
acute accent ´ &acute; &#180;
paragraph sign &para; &#182;
middle dot · &middot; &#183;
cedilla ¸ &cedil; &#184;
superscript one ¹ &sup1; &#185;
right angle quote » &raquo; &#187
one-fourth ¼ &frac14; &#188;
one-half ½ &frac12; &#189;
three-fourths ¾ &frac34; &#190;
inverted question mark ¿ &iquest; &#191;
multiply sign × &times; &#215;
division sign ÷ &divide; &#247;







Section 3

Alpha Code Numerical Code Symbol Name
&#09; Horizontal Tab
&#10; Line feed
&#32; space
&#33; ! Exclamation point
&quot; &#34; " Double quote

&#35; # Number sign

&#36; $ Dollar sign

&#37; % Percent sign
&amp; &#38; & Ampersand (and sign)

&#39; ' Single quote

&#40; ( Left parenthesis

&#41; ) Right parenthesis

&#42; * Asterix (star)

&#43; + Plus

&#44; , Comma

&#45; - Minus

&#46; . Period

&#47; / Forward slash

&#48; 0 Zero

&#49; 1 One

&#50; 2 Two

&#51; 3 Three

&#52; 4 Four

&#53; 5 Five

&#54; 6 Six

&#55; 7 Seven

&#56; 8 Eight

&#57; 9 Nine

&#58; : Colon

&#59; ; Semi-colon
&lt; &#60; < Less-than sign

&#61; = Equal sign
&gt; &#62; > Greater-than sign

&#63; ? Question mark

&#64; @ At-sign

&#65; A Capital a

&#66; B Capital b

&#67; C Capital c

&#68; D Capital d

&#69; E Capital e

&#70; F Capital f

&#71; G Capital g

&#72; H Capital h

&#73; I Capital i

&#74; J Capital j

&#75; K Capital k

&#76; L Capital l

&#77; M Capital m

&#78; N Capital n

&#79; O Capital o

&#80; P Capital p

&#81; Q Capital q

&#82; R Capital r

&#83; S Capital s

&#84; T Capital t

&#85; U Capital u

&#86; V Capital v

&#87; W Capital w

&#88; X Capital x

&#89; Y Capital y

&#90; Z Capital z

&#91; [ Left square bracket

&#92;
Back slash

&#93; ] Right square bracket

&#94; ^ Caret

&#95; _ Underscore

&#96; ` Grave accent

&#97; a Lowercase a

&#98; b Lowercase b

&#99; c Lowercase c

&#100; d Lowercase d

&#101; e Lowercase e

&#102; f Lowercase f

&#103; g Lowercase g

&#104; h Lowercase h

&#105; i Lowercase i

&#106; j Lowercase j

&#107; k Lowercase k

&#108; l Lowercase l

&#109; m Lowercase m

&#110; n Lowercase n

&#111; o Lowercase o

&#112; p Lowercase p

&#113; q Lowercase q

&#114; r Lowercase r

&#115; s Lowercase s

&#116; t Lowercase t

&#117; u Lowercase u

&#118; v Lowercase v

&#119; w Lowercase w

&#120; x Lowercase x

&#121; y Lowercase y

&#122; z Lowercase z

&#123; { Left curly brace

&#124; | Vertical bar

&#125; } Right curly brace
&tilde; &#126; ~ tilde

&#127;  Unknown

&#128; Euro

&#129; Unknown
&sbquo; &#130; Single low-quote

&#131; ƒ Script f
&dbquo; &#132; Double low-quote

&#133; Elipsis
&dagger; &#134; Dagger
&Dagger; &#135; Double dagger

&#136; ˆ Hatchek
&permil; &#137; Per million symbol

&#138; Š Capital esh
&lsaquo; &#139; Left single angle quote

&#140; ΠOE ligature

&#141; Unknown

&#142; Ž Capital ž

&#143; Unknown

&#144; Unknown
&lsquo; &#145; Left single-quote
&rsquo; &#146; Right single-quote
&ldquo; &#147; Left double-quote
&rdquo; &#148; Right double-quote

&#149; Small bullet
&ndash; &#150; En dash
&mdash; &#151; Em dash
&tilde &#152; ˜ Tilde
&trade; &#153; Trademark

&#154; š Lowercase esh
&rsaquo; &#155; Right single angle quote

&#156; œ oe ligature

&#157; Unknown

&#158; ž Lowercase ž
&Yuml; &#159; Ÿ Uppercase y-umlaut
&nbsp; &#160;
Non-breaking space
&iexcl; &#161; ¡ Inverted exclamation point
&cent; &#162; ¢ Cent
&pound; &#163; £ Pound currency sign
&curren; &#164; ¤ Currency sign
&yen; &#165; ¥ Yen currency sign
&brvbar; &#166; ¦ Broken vertical bar
&sect; &#167; § Section symbol
&uml; &#168; ¨ Umlaut (Diaeresis)
&copy; &#169; © Copyright
&ordf; &#170; ª Feminine ordinal indicator (superscript lowercase a)
&laquo; &#171; « Left angle quote
&not; &#172; ¬ Not sign
&shy; &#173; ­ Soft hyphen
&reg; &#174; ® Registered sign
&macr; &#175; ¯ Macron
&deg; &#176; ° Degree sign
&plusmn; &#177; ± Plus/minus sign
&sup2; &#178; ² Superscript 2
&sup3; &#179; ³ Superscript 3

&#180; ´ Acute accent
&micro; &#181; µ Micro sign
&para; &#182; Pilcrow sign (paragraph)
&middot; &#183; · Middle dot
&cedil; &#184; ¸ Cedilla
&sup1; &#185; ¹ Superscript 1
&ordm; &#186; º Masculine ordinal indicator (superscript o)
&raquo; &#187; » Right angle quote
&frac14; &#188; ¼ One quarter fraction
&frac12; &#189; ½ One half fraction
&frac34; &#190; ¾ Three quarters fraction
¿ &#191; ¿ Inverted question mark
&Agrave; &#192; À A grave accent
&Aacute; &#193; Á� A accute accent
&Acirc; &#194; Â A circumflex
&Atilde; &#195; Ã A tilde
&Auml; &#196; Ä A umlaut
&Aring; &#197; Å A ring
&AElig; &#198; Æ AE ligature
&Ccedil; &#199; Ç C cedilla
&Egrave; &#200; È E grave
&Eacute; &#201; É E acute
&Ecirc; &#202; Ê E circumflex
&Euml; &#203; Ë E umlaut
&Igrave; &#204; Ì I grave
&Iacute; &#205; � I acute
&Icirc; &#206; Î I circumflex
&Iuml; &#207; Ï I umlaut
&ETH; &#208; Ð Eth
&Ntilde; &#209; Ñ N tilde (enye)
&Ograve; &#210; Ò O grave
&Oacute; &#211; Ó O acute
&Ocirc; &#212; Ô O circumflex
&Otilde; &#213; Õ O tilde
&Ouml; &#214; Ö O umlaut
&times; &#215; × Multiplication sign
&Oslash; &#216; Ø O slash
&Ugrave; &#217; Ù U grave
&Uacute; &#218; Ú U acute
&Ucirc; &#219; Û U circumflex
&Uuml; &#220; Ü U umlaut
&Yacute; &#221; � Y acute
&THORN; &#222; Þ Thorn
&szlig; &#223; ß SZ ligature
&agrave; &#224; à a grave
&aacute; &#225; á a acute
&acirc; &#226; â a circumflex
&atilde; &#227; ã a tilde
&auml; &#228; ä a umlaut
&aring; &#229; å a ring
&aelig; &#230; æ ae ligature
&ccedil; &#231; ç c cedilla
&egrave; &#232; è e grave
&eacute; &#233; é e acute
&ecirc; &#234; ê e circumflex
&euml; &#235; ë e umlaut
&igrave; &#236; ì i grave
&iacute; &#237; í i acute
&icirc; &#238; î i circumflex
&iuml; &#239; ï i umlaut
&eth; &#240; ð eth
&ntilde; &#241; ñ n tilde
&ograve; &#242; ò o grave
&oacute; &#243; ó o acute
&ocirc; &#244; ô o circumflex
&otilde; &#245; õ o tilde
&ouml; &#246; ö o umlaut
&divide; &#247; ÷ Division symbol
&oslash; &#248; ø o slash
&ugrave; &#249; ù u grave
&uacute; &#250; ú u acute
&ucirc; &#251; û u circumflex
&uuml; &#252; ü u umlaut
&yacute; &#253; ý y acute
&thorn; &#254; þ thorn
&yuml; &#255; ÿ y umlaut
Semoga Bermanfaat