You are on page 1of 4

HTML TAGS

<HEAD></HEAD> <BODY></BODY> <h1></h1>..<h6></h6> <p></p> <br /> Formatting <b></b> <strong></strong> <i></i> <em></em> emphasized <big></big> <small></small> <sub></sub> subscript <sup></sup> superscript <pre></pre> preformatted text Different computer-output tags <code>Computer code</code> <kbd>Keyboard input</kbd> <tt>Teletype text</tt> <samp>Sample text</samp> <var>Computer variable</var> <address>Bacoor, Cavite</address> <a href=url>link</a> Tool Tip <abbr title="KEN">K</abbr> <acronym title="KEN">K</acronym>
Text Direction (rtl means right to left)

Long Quotation - Indented <blockquote> </blockquote> Short Quotation Quotation Mark <q></q> <del> </del> strikethrough <ins> </ins> undeline/Inserted
Background, heading and paragraph color <body style="background-color:PowderBlue;"> <h2 style="background-color:red;">This is a heading</h2> <p style="background-color:green;">This is a paragraph.</p> Paragraph font, font size and font color <p style="font-family:times;color:red;fontsize:10px;">sample</p>

TABLES <table><tr><td> Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag.
In <th> or <td> add rowspan= or colspan= to merge cell

Ex. <th rowspan="2">Telephone :</th> <table border="1"> table border; 0 for no border <th> </th> table header <caption> </caption> table Title after <table> tag

Email Link samples

<a href=mailto:kb@sys.com?Subject=Hello %20again">email</a> - %20 for space <a ref="mailto:someone@example.com? cc=someoneelse@example.com&bcc=andsomeoneelse@example .com&subject=Summer%20Party&body=You%20are%20invited %20to%20a%20big%20summer%20party!">Send mail!</a></p>

Image <img src="aa.gif" alt="" width="32" height="32" /> <img src="http://www.w3schools.com/images/w3schools_green.j pg" alt="W3Schools.com" align="<top/middle/bottom/left/right>" width="104" height="142" /> Sample Image Map:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm" /> <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm" /> <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm" /> </map>

<bdo dir="rtl">kenneth</bdo> Number & bullet List <ol> and <li> number <ul and <li> bullet

HTML 4.01 / XHTML 1.0 Reference


Ordered by Function
DTD: indicates in which HTML 4.01 / XHTML 1.0 DTD the tag is allowed. S=Strict, T=Transitional, and F=Frameset

TAG
<! DOCTYPE> <html> <body> <h1> to <h6> <p> <br /> <hr /> <!--...-->

DESCRIPTION
Basic
Defines the document type Defines an HTML document Defines the document's body Defines HTML headings Defines a paragraph Inserts a single line break Defines a horizontal line Defines a comment

DT D
STF STF STF STF STF STF STF STF

TAG

DESCRIPTION
Forms

DT D
STF STF STF STF STF STF STF STF STF STF TF

<form> <input / > <textare a> <button > <select> <optgrou p> <option> <label> <fieldset > <legend > <isindex > <frame / > <frames et> <nofram es> <iframe > <img /> <map> <area />

Defines an HTML form for user input Defines an input control Defines a multi-line text input control Defines a push button Defines a select list (drop-down list) Defines a group of related options in a select list Defines an option in a select list Defines a label for an input element Defines a border around elements in a form Defines a caption for a fieldset element Deprecated. Defines a searchable index related to a document

Formatting
<acronym > <abbr> <address > <b> <bdo> <big> <blockquo te> <center> <cite> <code> <del>
Defines an acronym Defines an abbreviation Defines contact information for the author/owner of a document Defines bold text Defines the text direction Defines big text Defines a long quotation Deprecated. Defines centered text Defines a citation Defines computer code text Defines deleted text

STF STF STF STF STF STF STF TF STF STF STF

Frames
Defines a window (a frame) in a frameset Defines a set of frames Defines an alternate content for users that do not support frames Defines an inline frame

F F TF TF STF STF STF

Images
Defines an image Defines an image-map Defines an area inside an image-map

<dfn> <em> <font> <i> <ins> <kbd> <pre> <q> <s> <samp> <small> <strike> <strong> <sub> <sup> <tt> <u> <var> <xmp> <style> <div> <span>

Defines a definition term Defines emphasized text Deprecated. Defines font, color, and size for text Defines italic text Defines inserted text Defines keyboard text Defines preformatted text Defines a short quotation Deprecated. Defines strikethrough text Defines sample computer code Defines small text Deprecated. Defines strikethrough text Defines strong text Defines subscripted text Defines superscripted text Defines teletype text Deprecated. Defines underlined text Defines a variable part of a text Deprecated. Defines preformatted text

STF STF TF STF STF STF STF STF TF STF STF TF STF STF STF STF TF STF

Links
<a> <link /> <ul> <ol> <li> <dir> <dl> <dt> <dd> <menu> <table> <caption > <th> <tr> <td> <thead> <tbody> <tfoot> <col /> <colgrou p> <script> <noscript > <applet> <object> <param / >
Defines an anchor Defines the relationship between a document and an external resource

STF STF STF STF STF TF STF STF STF TF STF STF STF STF STF STF STF STF STF STF STF STF TF STF STF

Lists
Defines an unordered list Defines an ordered list Defines a list item Deprecated. Defines a directory list Defines a definition list Defines a term (an item) in a definition list Defines a description of a term in a definition list Deprecated. Defines a menu list

Tables
Defines a table Defines a table caption Defines a header cell in a table Defines a row in a table Defines a cell in a table Groups the header content in a table Groups the body content in a table Groups the footer content in a table Defines attribute values for one or more columns in a table Defines a group of columns in a table for formatting

Styles
Defines style information for a document Defines a section in a document Defines a section in a document

STF STF STF STF STF STF STF TF

Meta Info
<head> <title> <meta> <base /> <basefont />
Defines information about the document Defines the document title Defines metadata about an HTML document Defines a default address or a default target for all links on a page
Deprecated. Defines a default font, color, or size for the text in a page

Programming
Defines a client-side script
Defines an alternate content for users that do not support clientside scripts

Deprecated. Defines an embedded applet Defines an embedded object Defines a parameter for an object