HTML Tags

Note: This alphabetically-ordered list of HTML tags does not include tags that are deprecated or elements used solely in frameset documents.

<!--...--> a comment - appears in the HTML source but is not displayed
<!DOCTYPE> the document type
<a> an anchor: encloses a link to the target named in href, or creates a link target using name

<a href="http://www.abitabout.com/" target="_blank">aBitAbout</a>
Creates a link to the external website: aBitAbout.
When target is specified as "_blank", the link will open in a new window or browser tab.
<a name="top" />
Creates an anchor which can be the subject of a link. So
<a name="#top">Go to top of page</a>
would create a link that took the user to the anchor with a name of "top".
This can be useful for jumping around long pages.

<abbr> an abbreviation
<acronym> an acronym
<address> contact information - a postal address - often displayed in italics
<area /> an area inside an image-map <map>
<b> bold text - better to use <strong>
<base /> a default address or a default target for all links on a page
<bdo> the text direction
<big> big text
<blockquote> a long, multi-line quotation - normally indented
<body> the document's body - contains the displayed content of the page
<br /> a single line break
<button> a push button
<caption> a table caption
<cite> a citation
<code> computer code text
<col /> attribute values for one or more columns in a table
<colgroup> a group of columns in a table for formatting
<dd> a description of a term in a definition list <dl>
<del> deleted text
<dfn> a definition term
<div> a section in a document
<dl> a definition list
<dt> a term (an item) in a definition list <dl>
<em> emphasized text
<fieldset> a border around elements in a form
<form> an HTML form for user input
<h1> <h2> <h3> <h4> <h5> <h6> headings from level 1 (biggest) to 6 (smallest)
<head> information about the document - precedes <body>
<hr /> a horizontal line
<html> an HTML document - contains <head> and <body>
<i> italic text - better to use <em>
<iframe> an inline frame
<img /> an image
<input /> an input control in a <form> - type is one of button, checkbox, file, hidden, image, password, radio, reset, submit,text
<ins> inserted text
<kbd> keyboard text
<label> a label for an <input> element
<legend> a caption for a <fieldset> element
<li> a list item in <ol> or <ul>
<link /> the relationship between a document and an external resource - must be in <head>
<map> an image-map
<meta /> metadata about an HTML document - must be in <head>
<noframes> an alternate content for users that do not support frames
<noscript> an alternate content for users that do not support client-side scripts
<object> an embedded object
<ol> an ordered list
<optgroup> a group of related options in a select list
<option> an option in a select list <select>
<p> a paragraph
<param /> a parameter for an object
<pre> preformatted text - line breaks are preserved
<q> a short quotation
<samp> sample computer code
<script> a client-side script
<select> a select list (drop-down list)
<small> small text
<span> a section in a document
<strong> strong text
<style> style information for a document
<sub> subscripted text
<sup> superscripted text
<table> a table
<tbody> Groups the body content in a table <table>
<td> a cell in a table row <tr>
<textarea> a multi-line text input control
<tfoot> Groups the footer content in a table <table>
<th> a header cell in a table row <tr>
<thead> Groups the header content in a table <table>
<title> the title of a document - must be in <head>
<tr> a row in a table <table>
<tt> teletype text
<ul> an unordered list
<var> text that is a variable

These tags should be used to describe semantic meaning: although you might assume that <strong> will always be displayed as bold text for example, it is best to use CSS to control the way a browser will display elements on a web page.