HTML Tag Reference for HTML 4.01 / XHTML 1.0

A web page is created using a language called “Hypertext Markup Language” or better known as HTML Code.  The HTML code is composed of what they call TAGs. You can write your own HTML page within a plain text editor using Notepad or any other HTML editor and eventually you have to save that file with the extension html or htm. Then, eventually you will open with any browser like Firefox, Internet Explores, Chrome, or others.

Example:

<html>
<head>
<title>Your Page Title</title>
</head>
<body>
This part is what will be visible in the browser.  Hello World!
</body>
</html>

HTML codes (HTML tags) are enclosed by the lesser than (<) and greater than (>) brackets and may be written in capital or lower case letters.  If you open a tag you have to close with a with a end tag ( E.g.: <title>Your Page Title</title>). Loot the example above and see all tags ended with / (back slash) behind the closing tag.

Here is a quick references for HTML tags:

Tag Description
Basic
<!DOCTYPE> Defines the document type
<html> Defines an HTML document
<body> Defines the document’s body
<h1> to <h6> Defines HTML headings
<p> Defines a paragraph
<br /> Inserts a single line break
<hr /> Defines a horizontal line
<!–…–> Defines a comment
Formatting
<acronym> Defines an acronym
<abbr> Defines an abbreviation
<address> Defines contact information for the author/owner of a document
<b> Defines bold text
<bdo> Defines the text direction
<big> Defines big text
<blockquote> Defines a long quotation
<center> Deprecated. Defines centered text
<cite> Defines a citation
<code> Defines computer code text
<del> Defines deleted text
<dfn> Defines a definition term
<em> Defines emphasized text
<font> Deprecated. Defines font, color, and size for text
<i> Defines italic text
<ins> Defines inserted text
<kbd> Defines keyboard text
<pre> Defines preformatted text
<q> Defines a short quotation
<s> Deprecated. Defines strikethrough text
<samp> Defines sample computer code
<small> Defines small text
<strike> Deprecated. Defines strikethrough text
<strong> Defines strong text
<sub> Defines subscripted text
<sup> Defines superscripted text
<tt> Defines teletype text
<u> Deprecated. Defines underlined text
<var> Defines a variable part of a text
<xmp> Deprecated. Defines preformatted text
Forms
<form> Defines an HTML form for user input
<input /> Defines an input control
<textarea> Defines a multi-line text input control
<button> Defines a push button
<select> Defines a select list (drop-down list)
<optgroup> Defines a group of related options in a select list
<option> Defines an option in a select list
<label> Defines a label for an input element
<fieldset> Defines a border around elements in a form
<legend> Defines a caption for a fieldset element
<isindex> Deprecated. Defines a searchable index related to a document
Frames
<frame /> Defines a window (a frame) in a frameset
<frameset> Defines a set of frames
<noframes> Defines an alternate content for users that do not support frames
<iframe> Defines an inline frame
Images
<img /> Defines an image
<map> Defines an image-map
<area /> Defines an area inside an image-map
Links
<a> Defines an anchor
<link /> Defines the relationship between a document and an external resource
Lists
<ul> Defines an unordered list
<ol> Defines an ordered list
<li> Defines a list item
<dir> Deprecated. Defines a directory list
<dl> Defines a definition list
<dt> Defines a term (an item) in a definition list
<dd> Defines a description of a term in a definition list
<menu> Deprecated. Defines a menu list
Tables
<table> Defines a table
<caption> Defines a table caption
<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table
<thead> Groups the header content in a table
<tbody> Groups the body content in a table
<tfoot> Groups the footer content in a table
<col /> Defines attribute values for one or more columns in a table
<colgroup> Defines a group of columns in a table for formatting
Styles
<style> Defines style information for a document
<div> Defines a section in a document
<span> Defines a section in a document
Meta Info
<head> Defines information about the document
<title> Defines the document title
<meta> Defines metadata about an HTML document
<base /> Defines a default address or a default target for all links on a page
<basefont /> Deprecated. Defines a default font, color, or size for the text in a page
Programming
<script> Defines a client-side script
<noscript> Defines an alternate content for users that do not support client-side scripts
<applet> Deprecated. Defines an embedded applet
<object> Defines an embedded object
<param /> Defines a parameter for an object