Sunday 25 September 2011

html


HTML Tags Chart
To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into your web page.
Tag
Name
Code Example
Browser View
<!--comment<!--This can be viewed in the HTML part of a document-->Nothing will show (Tip)
<A -anchor<A HREF="http://www.yourdomain.com/">Visit Our Site</A>Visit Our Site (Tip)
<B>bold<B>Example</B>Example
<BIG>big (text)<BIG>Example</BIG>Example (Tip)
<BODY>body of HTML document<BODY>The content of your HTML page</BODY>Contents of your web page (Tip)
<BR>line breakThe contents of your page<BR>The contents of your pageThe contents of your web page
The contents of your web page
<CENTER>center<CENTER>This will center your contents</CENTER>
This will center your contents
<DD>definition description<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
Definition Term
Definition of the term
Definition Term
Definition of the term
<DL>definition list<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
Definition Term
Definition of the term
Definition Term
Definition of the term
<DT>definition term<DL>
<DT>Definition Term
<DD>Definition of the term
<DT>Definition Term
<DD>Definition of the term
</DL>
Definition Term
Definition of the term
Definition Term
Definition of the term
<EM>emphasisThis is an <EM>Example</EM> of using the emphasis tagThis is an Example of using the emphasis tag
<EMBED>embed object<EMBED src="yourfile.mid" width="100%" height="60" align="center">
(Tip)
<EMBED>embed object<EMBED src="yourfile.mid" autostart="true" hidden="false" loop="false">
<noembed><bgsound src="yourfile.mid" loop="1"></noembed>


Music will begin playing when your page is loaded and will only play one time. A control panel will be displayed to enable your visitors to stop the music.
<FONT>font<FONT FACE="Times New Roman">Example</FONT>Example (Tip)
<FONT>font<FONT FACE="Times New Roman" SIZE="4">Example</FONT>Example (Tip)
<FONT>font<FONT FACE="Times New Roman" SIZE="+3" COLOR="#FF0000">Example</FONT>Example (Tip)
<FORM>form<FORM action="mailto:you@yourdomain.com">
Name: <INPUT name="Name" value="" size="10"><BR>
Email: <INPUT name="Email" value="" size="10"><BR>
<CENTER><INPUT type="submit"></CENTER>
</FORM>
Name:  (Tip)
Email: 
<H1>heading 1<H1>Heading 1 Example</H1>

Heading 1 Example

<H2>heading 2<H2>Heading 2 Example</H2>

Heading 2 Example

<H3>heading 3<H3>Heading 3 Example</H3>

Heading 3 Example

<H4>heading 4<H4>Heading 4 Example</H4>

Heading 4 Example

<H5>heading 5<H5>Heading 5 Example</H5>
Heading 5 Example
<H6>heading 6<H6>Heading 6 Example</H6>
Heading 6 Example
<HEAD>heading of HTML document<HEAD>Contains elements describing the document</HEAD>Nothing will show
<HR>horizontal rule<HR>
Contents of your web page (Tip)

Contents of your web page
<HR>horizontal rule<HR WIDTH="50%" SIZE="3">Contents of your web page

Contents of your web page
<HR>horizontal rule<HR WIDTH="50%" SIZE="3" NOSHADE>Contents of your web page

Contents of your web page
<HR>
(Internet
Explorer)
horizontal rule<HR WIDTH="75%" COLOR="#FF0000" SIZE="4">Contents of your web page

Contents of your web page
<HR>
(Internet
Explorer)
horizontal rule<HR WIDTH="25%" COLOR="#6699FF" SIZE="6">Contents of your web page

Contents of your web page
<HTML>hypertext markup language<HTML><HEAD><META><TITLE>Title of your web page</TITLE></HEAD><BODY>HTML web page contents</BODY></HTML>Contents of your web page
<I>italic<I>Example</I>Example
<IMG>image<IMG SRC="Earth.gif" WIDTH="41" HEIGHT="41" BORDER="0" ALT="text describing the image">a sentence about your site (Tip)
<INPUT>input fieldExample 1:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<INPUT type="text" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 1: (Tip)

<INPUT>
(Internet Explorer)
input fieldExample 2:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<INPUT type="text" STYLE="color: #FFFFFF; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #72A4D2;" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 2: (Tip)

<INPUT>input fieldExample 3:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2"><TR><TD BGCOLOR="#8463FF"><INPUT type="text" size="10" MAXLENGTH="30"></TD><TD BGCOLOR="#8463FF" VALIGN="Middle"> <INPUT type="image" name="submit" src="yourimage.gif"></TD></TR> </TABLE>
</FORM>
Example 3: (Tip)

<INPUT>input fieldExample 4:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
Enter Your Comments:<BR>
<TEXTAREA wrap="virtual" name="Comments" rows=3 cols=20 MAXLENGTH=100></TEXTAREA><BR>
<INPUT type="Submit" VALUE="Submit">
<INPUT type="Reset" VALUE="Clear">
</FORM>
Example 4: (Tip)


<INPUT>input fieldExample 5:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION >option 1
<OPTION SELECTED>option 2
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
<INPUT type="Submit" VALUE="Submit"></CENTER>
</FORM>
Example 5: (Tip)

Select an option: 
<INPUT>input fieldExample 6:

<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
Select an option:<BR>
<INPUT type="radio" name="option"> Option 1
<INPUT type="radio" name="option" CHECKED> Option 2
<INPUT type="radio" name="option"> Option 3
<BR>
<BR>
Select an option:<BR>
<INPUT type="checkbox" name="selection"> Selection 1
<INPUT type="checkbox" name="selection" CHECKED> Selection 2
<INPUT type="checkbox" name="selection"> Selection 3
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 6: (Tip)

Select an option:
 Option 1
 Option 2
 Option 3

Select an option:
 Selection 1
 Selection 2
 Selection 3
<LI>list itemExample 1:
<MENU>
<LI type="disc">List item 1
<LI type="circle">List item 2
<LI type="square">List item 3
</MENU>


Example 2:

<OL type="i">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>
Example 1: (Tip)
  • List item 1
  • List item 2
  • List item 3

Example 2:
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
<LINK>linkVisit our <A HREF="http://www.yourdomain.com/">site</A>Visit our site
<MARQUEE>
(Internet
Explorer)
scrolling text<MARQUEE bgcolor="#CCCCCC" loop="-1" scrollamount="2" width="100%">Example Marquee</MARQUEE>Example Marquee(Tip)
<MENU>menu<MENU>
<LI type="disc">List item 1
<LI type="circle">List item 2
<LI type="square">List item 3
</MENU>
  • List item 1
  • List item 2
  • List item 3
<META>meta<META name="Description" content="Description of your site">
<META name="keywords" content="keywords describing your site">
Nothing will show (Tip)
<META>meta<META HTTP-EQUIV="Refresh" CONTENT="4;URL=http://www.yourdomain.com/">Nothing will show (Tip)
<META>meta<META http-equiv="Pragma" content="no-cache">Nothing will show (Tip)
<META>meta<META name="rating" content="General">Nothing will show (Tip)
<META>meta<META name="ROBOTS" content="ALL">Nothing will show (Tip)
<META>meta<META NAME="ROBOTS" content="NOINDEX,FOLLOW">Nothing will show (Tip)
<OL>ordered listNumbered

<OL>
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>


Numbered Special Start

<OL start="5">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>


Lowercase Letters<OL type="a">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>

Capital Letters

<OL type="A">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>

Capital Letters Special Start

<OL type="A" start="3">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>

Lowercase Roman Numerals

<OL type="i">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>

Capital Roman Numerals

<OL type="I">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>


Capital Roman Numerals Special Start
<OL type="I" start="7">
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>
Numbered
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Numbered Special Start
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Lowercase Letters
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Capital Letters
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Capital Letters Special Start
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Lowercase Roman Numerals
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Capital Roman Numerals
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
Capital Roman Numerals Special Start
  1. List item 1
  2. List item 2
  3. List item 3
  4. List item 4
<OPTION>listbox option<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION>option 1
<OPTION SELECTED>option 2
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
</CENTER>
</FORM>
Select an option: (Tip)
<P>paragraphThis is an example displaying the use of the paragraph tag. <P> This will create a line break and a space between lines.

Attributes:

Example 1:<BR>
<BR>
<P align="left">
This is an example<BR>
displaying the use<BR>
of the paragraph tag.<BR>
<BR>
Example 2:<BR>
<BR>
<P align="right">
This is an example<BR>
displaying the use<BR>
of the paragraph tag.<BR>
<BR>
Example 3:<BR>
<BR>
<P align="center">
This is an example<BR>
displaying the use<BR>
of the paragraph tag.
This is an example displaying the use of the paragraph tag.
This will create a line break and a space between lines.

Attributes:

Example 1:

This is an example
displaying the use
of the paragraph tag.

Example 2:

This is an example
displaying the use
of the paragraph tag.
Example 3:

This is an example
displaying the use
of the paragraph tag.
<SMALL>small (text)<SMALL>Example</SMALL>Example (Tip)
<STRONG>strong emphasis<STRONG>Example</STRONG>Example
<TABLE>tableExample 1:

<TABLE BORDER="4" CELLPADDING="2"  CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>

Example 2: (Internet Explorer)

<TABLE BORDER="2" BORDERCOLOR="#336699" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>

Example 3:

<TABLE CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
<TR>
<TD BGCOLOR="#CCCCCC">Column 1</TD>
<TD BGCOLOR="#CCCCCC">Column 2</TD>
</TR>
<TR>
<TD>Row 2</TD>
<TD>Row 2</TD>
</TR>
</TABLE>
Example 1: (Tip)
Column 1Column 2

Example 2: (Tip)
Column 1Column 2


Example 3: (Tip)
Column 1Column 2
Row 2Row 2
<TD>table data<TABLE BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>

</TR>
</TABLE>

Column 1Column 2
<TH>table header<DIV align="center"><TABLE>
<TR>
<TH>Column 1</TH>
<TH>Column 2</TH>
<TH>Column 3</TH>

</TR>
<TR>
<TD>Row 2</TD>
<TD>Row 2</TD>
<TD>Row 2</TD>
</TR>
<TR>
<TD>Row 3</TD>
<TD>Row 3</TD>
<TD>Row 3</TD>
</TR>
<TR>
<TD>Row 4</TD>
<TD>Row 4</TD>
<TD>Row 4</TD>
</TR>
</TABLE>
</DIV>
Column 1Column 2Column 3
Row 2Row 2Row 2
Row 3Row 3Row 3
Row 4Row 4Row 4
<TITLE>document title<TITLE>Title of your HTML page</TITLE>Title of your web page will be viewable in the title bar. (Tip)
<TR>table row<TABLE BORDER="2" CELLPADDING="2" CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>

Column 1Column 2

<TT>teletype<TT>Example</TT>Example
<U>underline<U>Example</U>Example
<UL>unordered listExample 1:<BR>
<BR>
<UL>
<LI>List item 1
<LI>List item 2
</UL>
<BR>
Example 2:<BR>
<UL type="disc">
<LI>List item 1
<LI>List item 2
<UL type="circle">
<LI>List item 3
<LI>List item 4
</UL>
</UL>
Example 1:

  • List item 1
  • List item 2

Example 2:
  • List item 1
  • List item 2
    • List item 3
    • List item 4


More Special Characters

CharacterHTMLCharacter CodeDescriptionCharacterHTML CodeCharacter CodeDescription
&#09;horizontal tab&#145;left curly quote mark
&#10;line feed&#146;right curly quote mark/apostrophe
&#13;carriage return&#147;left curly quote marks
&#32;space&#148;right curly quote marks
!&#33;exclamation point&#149;bullet
"&#34;&quot;straight quote marks&#150;“en” (short) dash
#&#35;hash mark/number sign&#151;“em” (long) dash
$&#36;dollar sign˜&#152;tilde
%&#37;percent sign&#153;trademark
&&#38;&amp;ampersandš&#154;
'&#39;straight quote mark/apostrophe&#155;
(&#40;left parenthesisœ&#156;small oe ligature
)&#41;right parenthesisŸ&#159;capital Y, umlaut
*&#42;asterisk&#160;&nbsp;non-breaking space
+&#43;plus sign¡&#161;&iexcl;inverted exclamation point
,&#44;comma¢&#162;&cent;cent sign
-&#45;hyphen£&#163;&pound;pound sterling sign
.&#46;period/dot¤&#164;&curren;general currency sign
/&#47;slash¥&#165;&yen;yen sign
0&#48;zero¦&#166;&brvbar;broken vertical bar
&brkbar;
1&#49;one§&#167;&sect;section sign
2&#50;two¨&#168;&uml;umlaut/dieresis
&die;
3&#51;three©&#169;&copy;copyright symbol
4&#52;fourª&#170;&ordf;feminine ordinal
5&#53;five«&#171;&laquo;left angle quote marks
6&#54;six¬&#172;&not;not sign
7&#55;seven&#173;&shy;soft hyphen
8&#56;eight®&#174;&reg;registered symbol
9&#57;nine¯&#175;&macr;macron accent
&hibar;
:&#58;colon°&#176;&deg;degree sign
;&#59;semi-colon±&#177;&plusmn;plus or minus
<&#60;&lt;less than sign²&#178;&sup2;superscript 2
=&#61;equals sign³&#179;&sup3;superscript 3
>&#62;&gt;greater than sign´&#180;&acute;acute accent
?&#63;question markµ&#181;&micro;micro sign (Greek mu)
@&#64;commercial “at” sign&#182;&para;paragraph sign
A&#65;capital A·&#183;&middot;middle dot
B&#66;capital B¸&#184;&cedil;cedilla
C&#67;capital C¹&#185;&sup1;superscript 1
D&#68;capital Dº&#186;&ordm;masculine ordinal
E&#69;capital E»&#187;&raquo;right angle quote marks
F&#70;capital F¼&#188;&frac14;fraction one-fourth
G&#71;capital G½&#189;&frac12;fraction one-half
H&#72;capital H¾&#190;&frac34;fraction three-fourths
I&#73;capital I¿&#191;&iquest;inverted question mark
J&#74;capital JÀ&#192;&Agrave;capital A, grave accent
K&#75;capital KÁ&#193;&Aacute;capital A, acute accent
L&#76;capital LÂ&#194;&Acirc;capital A, circumflex accent
M&#77;capital MÃ&#195;&Atilde;capital A, tilde
N&#78;capital NÄ&#196;&Auml;capital A, umlaut/dieresis
O&#79;capital OÅ&#197;&Aring;capital A, ring
P&#80;capital PÆ&#198;&Aelig;capital AE ligature, dipthong
Q&#81;capital QÇ&#199;&Ccedil;capital C, cedilla
R&#82;capital RÈ&#200;&Egrave;capital E, grave accent
S&#83;capital SÉ&#201;&Eacute;capital E, acute accent
T&#84;capital TÊ&#202;&Ecicr;capital E, circumflex accent
U&#85;capital UË&#203;&Euml;capital E, umlaut/dieresis
V&#86;capital VÌ&#204;&Igrave;capital I, grave accent
W&#87;capital WÍ&#205;&Iacute;capital I, acute accent
X&#88;capital XÎ&#206;&Icirc;capital I, circumflex accent
Y&#89;capital YÏ&#207;&Iuml;capital I, umlaut/dieresis mark
Z&#90;capital ZÐ&#208;&ETH;capital Eth, Icelandic
&Dstrok;
[&#91;left square bracketÑ&#209;&Ntilde;capital N, tilde
\&#92;backslashÒ&#210;&Ograve;capital O, grave accent/null set
]&#93;right square bracketÓ&#211;&Oacute;capital O, acute accent
^&#94;caretÔ&#212;&Ocirc;capital O, circumflex accent
_&#95;underscore barÕ&#213;&Otilde;capital O, tilde
`&#96;grave accentÖ&#214;&Ouml;capital O, umlaut/dieresis mark
a&#97;small a×&#215;&times;multiplication sign
b&#98;small bØ&#216;&Oslash;capital O, slash
c&#99;small cÙ&#217;&Ugrave;capital U, grave accent
d&#100;small dÚ&#218;&Uacute;capital U, acute accent
e&#101;small eÛ&#219;&Ucirc;capital U, circumflex accent
f&#102;small fÜ&#220;&Uuml;capital U, umlaut/dieresis mark
g&#103;small gÝ&#221;&Yacute;capital Y, acute accent
h&#104;small hÞ&#222;&THORN;capital Thorn, Icelandic
i&#105;small iß&#223;&szlig;small sz ligature, German
j&#106;small jà&#224;&agrave;small a, grave accent
k&#107;small ká&#225;&aacute;small a, acute accent
l&#108;small lâ&#226;&acirc;small a, circumflex accent
m&#109;small mã&#227;&atilde;small a, tilde
n&#110;small nä&#228;&auml;small a, umlaut/dieresis mark
o&#111;small oå&#229;&aring;small a, ring
p&#112;small pæ&#230;&aelig;small ae ligature, dipthong
q&#113;small qç&#231;&ccedil;small c, cedilla
r&#114;small rè&#232;&egrave;small e, grave accent
s&#115;small sé&#233;&eacute;small e, acute accent
t&#116;small tê&#234;&ecirc;small e, circumflex accent
u&#117;small uë&#235;&euml;small e, umlaut/dieresis mark
v&#118;small vì&#236;&igrave;small i, grave accent
w&#119;small wí&#237;&iacute;small i, acute accent
x&#120;small xî&#238;&icirc;small i, circumflex accent
y&#121;small yï&#239;&iuml;small i, umlaut/dieresis mark
z&#122;small zð&#240;&eth;small eth, Icelandic
{&#123;left curly braceñ&#241;&ntildesmall n, tilde
|&#124;solid vertical barò&#242;&ograve;small o, grave accent
}&#125;right curly braceó&#243;&oacute;small o, acute accent
~&#126;tildeô&#244;&ocirc;small o, circumflex accent
&#127;boxõ&#245;&otilde;small o, tilde
&#130;commaö&#246;&ouml;small o, umlaut/dieresis mark
ƒ&#131;florin÷&#247;&divide;division sign
&#132;ø&#248;&oslash;small o, slash/null set
&#133;ellipsisù&#249;&ugrave;small u, grave accent
&#134;daggerú&#250;&uacute;small u, acute accent
&#135;double daggerû&#251;&ucirc;small u, circumflex accent
ˆ&#136;circumflex accentü&#252;&uuml;small u, umlaut,dieresis mark
&#137;permilý&#253;&yacute;small y, acute accent
Š&#138;þ&#254;&thorn;small thorn, Icelandic
&#139;ÿ&#255;&yuml;small y, umlaut/dieresis mark
Œ&#140;capital OE ligature

Special Characters

To add special characters to your HTML or XHTML document use the HTML code to insert the special character. This is its numeric position in the Unicode character set. Unicode is the standardized set of characters from many of the world's languages.