Introduction
Overview
History
Advice
IDE
Books
Tutorials

Beginners
Introduction
Text Formatting
Images
Tables
Forms
Entities/Colors

Advanced
Frames
Image Maps
Stylesheets
Reference

Community
Web Sites
Mailing Lists
USENET
Vendors
News

GBIC >> HTML >> Reference
Reference
Sometimes you just want to jump straight to the code, which is what this page provides. Each of the HTML tags are listed here for quick retreival - one table of tags grouped by category and a complete list of all tags in alphabetical order.

Category Listing End Tag Options
Alphabetical Listing Extensions (tags)
Alphabetical Listing w/Attributes Extensions (attributes)


Return to top of document

Category Listing of HTML Tags

The HTML tags can be grouped according to the display features they support. Almost a third of the tags are associated with simple text formatting - bold, italic, etc.

Document
<html>
<head>
<title>
<body>
   
<frame>
<iframe>
<frameset>
<noframes>   
 
<div>
<link>
<meta>
<span>
<style>
         
Text Formatting
<abbr>
<acronym>
<address>
<b>
<basefont>
<bdo>
<big>
<blockquote>   
<cite>
<code>
<del>
<dfn>
<em>
<font>   
<h1..6>
<i>
<ins>
<kbd>
<pre>
<q>
<s>
<samp>
<small>
<strike>
<strong>
<sub>
<sup>
<tt>
<u>
<var>
      
White Space
<br>
<hr>
<center>
<p>

Images/Sound
<area>
<img>
<map>
      
Links
<a>
<base>
      
Lists
<dd>
<dir>
<dl>
<dt>
<li>
<menu>
<ol>
<ul>
      
Forms
<button>
<fieldset>
<form>
<input>
<isindex>
<label>
<legend>
<optgroup>
<option>
<select>
<textarea>
      
Tables
<caption>
<col>
<colgroup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
      
Objects
<applet>
<noscript>
<object>
<param>
<script>


Return to top of document

Alphabetical Listing of HTML Tags

Tag names listed in strikethru font are valid HTML 4.01 tags but have been deprecated, which means that their use is to be avoided and will eventually eliminated from the HTML specification.

However, remember that browsers often use tags which have become popular with HTML authors. Such tags will often be supported even once they are dropped from the HTML specification so that existing HTML code will continue to display correctly.

<a>Anchor
<abbr>Abbreviated form
<acronym>Acronym
<address>Information on author
<applet>Java applet
<area>Client-side image map area
<b>Bold
<base>Document base URL
<basefont>Document base font size
<bdo>Direction of text display
<big>Large text
<blockquote>Long quotation (multi-line)
<body>Document body (section of HTML page)
<br>Forced line break (advance to next line)
<button>Push button
<caption>Table caption
<center>Center content between margins
<cite>Citation
<code>Computer code fragment
<col>Table column
<colgroup>Table column group
<dd>Definition description
<del>Deleted text
<dfn>Instance definition
<dir>Directory list
<div>Generic language/style container
<dl>Definition list
<dt>Definition term
<em>Emphasis
<fieldset>Form control group
<font>Local change to font
<form>Interactive form
<frame>Subwindow (a window within the page)
<frameset>Window subdivision
<h1> to <h6>Heading (various sizes)
<head>Document head (section of HTML page)
<hr>Horizontal rule
<html>Document root element (HTML document)
<i>Italic text
<iframe>Inline frame (a window within the page)
<img>Embedded image
<input>Form control
<ins>Inserted text
<isindex>Single line prompt
<kbd>Text to be entered by the user
<label>Form field
<legend>Fieldset title
<li>List item
<link>Media-independent link (resource reference)
<map>Client-side image map
<menu>Menu list
<meta>Generic information about the HTML page
<noframes>Alternate content for non-frame rendering
<noscript>Alternate content for non-script rendering
<object>Generic embedded object (within the HTML page)
<ol>Ordered list
<optgroup>Option group
<option>Selectable choice
<p>Paragraph (insert a blank line)
<param>Named property value for object
<pre>Preformatted text
<q>Short inline quotation
<s>Strikethru text
<samp>Sample computer code
<script>Script statements
<select>Option selector
<small>Small text
<span>Generic language/style container
<strike>Strikethru text
<strong>Strong emphasis
<style>Style definition/information
<sub>Subscripted text
<sup>Superscripted text
<table>Table (column and row formatted information)
<tbody>Table body
<td>Table cell
<textarea>Multi-line text field
<tfoot>Table footer
<th>Table header cell
<thead>Table header
<title>Document title (of the HTML page)
<tr>Table row
<tt>Teletype or monospaced text
<u>Underlined text
<ul>Unordered list
<var>Instance of variable or program argument


Return to top of document

Alphabetical Listing w/Attributes

Most, but not all, of the HTML tags allow you to include various parameters (called attributes) to modify how the tag displays the text or objects enclosed between the tags. Here's an alphabetical listing of all HTML tags and their attributes. Some attributes allow you to put in a simple value of your choosing. Where an attribute requires a specific text or number values, the allowed values are listed.

Of the many supported attributes, several are supported by the majority of tags. These "core" attributes include:

  • id / class / style / title
  • lang / dir
  • onclick / ondblclick
  • onkeydown / onkeyup / onkeypress
  • onmousedown / onmouseup / onmouseover / onmouseout

To shorten the list below, when these attributes apply to a tag, a one-line version of the applicable attributes will be used, such as:

  • id/class/style/title/lang/dir/onclick../onkey../onmouse..

where the onclick../onkey../onmouse.. represents all ten of the "on" event attributes. If the complete set of core attributes doesn't apply, then the list below will show just those attributes which do apply.

Also, the HTML 4.01 specification has created 3 attributes (datasrc, datafld, and dataformatas) which are reserved for future use of the span, div, object, input, select, textarea, button and table tags. These reserved attributes are not included in the table below.

TagDescription/AttributesAttribute DescriptionAttribute Values
<a>Definition: anchor
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key 
charsetchar encoding of linked resource 
coordsxy coordinates 
hrefURL you are linking to 
hreflanglanguage code 
namename a section of the page 
onblurelement lost the focus 
onfocuselement got the focus 
relforward link type 
revreverse link type 
shapegeometry used in image map 
tabindexposition in tabbing order 
targetwhich window the document should go in"_blank" | "_parent" | "_self" | "_top" | window name
typecontent type 
<abbr>Definition: abbreviated formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<acronym>Definition: acronym formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<address>Definition: address formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<applet>Definition: java applet
Core Attributes: id/class/style/title
alignalignment of applet to surrounding textLEFT | RIGHT | TOP | MIDDLE | BOTTOM | BASELINE
alttext to display while loading/or if not available 
archivea compressed collection of applet components 
codethe applet to run 
codebasepath to the applet class 
heightheight of the applet 
hspacehorizontal space between applet and surrounding text 
namename of applet for reference by other applets 
objectapplet file 
vspacevertical space between applet and surrounding text 
widthwidth of the applet 
<area>Definition: image mag area
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key 
altalternate text if the image isn't displayed 
coordscoordinates for the link area shape 
hrefURL you are linking to 
nohrefthis area is not a link 
onblurelement lost focus 
onfocuselement got focus 
shapeshape of image areaRECT | CIRCLE | POLY | DEFAULT
tabindexposition in tabbing order 
targetwhat frame to go to 
<b>Definition: bold
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<base>Definition: default link for URLs
Core Attributes: none
hrefdefault address for hypertext links 
targetdefault window for linked documents"_blank" | "_parent" | "_self" | "_top" | frame name
<basefont>Definition: doc font
Core Attributes: none
colorfont color 
facefont family 
ididentifies elment within document 
sizefont size 
<bdo>Definition: Direction of text
Core Attributes: id/class/style/title/lang/dir
Attributes: none
<big>Definition: big formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<blockquote>Definition: multi-line quote
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
citereason for change 
<body>Definition: doc body
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alinkcolor of links while you are clicking on them 
backgroundbackground picture for the page 
bgcolorbackground color of the page 
linkcolor of links that haven't been followed yet 
onLoadscript to run once the page is fully loaded 
onUnloadscript to run 
textcolor of the text on the page 
vlinkcolor of links that have been followed 
<br>Definition: break
Core Attributes: id/class/style/title
cleargo past a picture or other objectLEFT | RIGHT | ALL | BOTH
<button>Definition: button
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key for this button 
disableddisable this button 
namename of this button element 
onblurelement lost focus 
onfocuselement got focus 
tabindextab order 
typewhat type of button is thisBUTTON | SUBMIT | RESET
valuethe value sent with the form 
<caption>Definition: caption formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignalignment of caption to tableTOP | BOTTOM | LEFT | RIGHT
<center>Definition: center
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<cite>Definition: citation
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<code>Definition: code formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<col>Definition: columns
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignhorizontal alignmentLEFT | CENTER | RIGHT | JUSTIFY
charalignment character 
charoffoffset for alignment character 
spanhow many columns this affects 
valignvertical alignment 
widthwidth of the column 
<colgroup>Definition: column group
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignalignment of cell contents 
charalignment character 
charoffoffset for alignment character 
spanhow many columns this affects 
valignvertical alignment 
widthwidth of the column group 
<dd>Definition: definition description
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<del>Definition: deleted formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
citereason for change 
datetimedate and time of change 
<dfn>Definition: definition formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<dir>Definition: directory list
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
compactreduced inter-item spacing 
<div>Definition: document partition
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
aligntext alignmentALIGN = LEFT | CENTER | RIGHT | JUSTIFY
<dl>Definition: definition list
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
compacttake up less space 
<dt>Definition: definition term
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<em>Definition: emphasis
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<fieldset>Definition: group of form elements
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<font>Definition: font
Core Attributes: id/class/style/title/lang/dir
colorcolor of the text 
faceset the typestyle for text 
sizesize of the font 
<form>Definition: form field
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
acceptlist of MIME types for file upload 
accept-charsetlist of supported charsets 
actionURL of the CGI program 
enctypewhat type of form this is"multipart/form-data"
| "application/x-www-form-urlencoded" | "text/plain"
methodhow to transfer the data to the CGIGET | POST
namename of this form 
onResetscript to run before the form is reset 
onSubmitscript to run before the form is submitted 
targetwhat frames to put the results in"_blank" | "_parent" | "_self" | "_top" | frame name
<frame>Definition: frame
Core Attributes: id/class/style/title
framebordershould this frame have a border?YES | 1 | NO | 0
longdesclink to long description 
marginheightthe internal top and bottom margins for the frame 
marginwidththe internal left and right margins for the frame 
namethe name of the frame 
noresizedon't let the user make the frame bigger or smaller 
scrollingshould the frame have a scrollbar?YES | NO | AUTO
srcwhat file to put in the frame 
<frameset>Definition: group of frames
Core Attributes: id/class/style/title
colshow many cols in the frameset 
onLoadall frames have been loaded 
onUnloadall frames have been removed 
rowsROWS: how many rows in the frameset 
<h1> - <h6>Definition: header
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignalignmentLEFT | RIGHT | CENTER | JUSTIFY
<head>Definition: doc header
Core Attributes: lang/dir
profilenamed dictionary of meta information 
<hr>Definition: horizontal rule
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignhorizontal alignment of the lineLEFT | RIGHT | CENTER
noshadedon't use shadow effect 
sizeheight 
widthhorizontal width of the line 
<html>Definition: html document
Core Attributes: lang/dir
versionHTML release 
<i>Definition: italiic
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<iframe>Definition: inline frame
Core Attributes: id/class/style/title
alignalignment of the frame object to text around itLEFT | RIGHT | TOP | TEXTTOP | MIDDLE
| ABSMIDDLE | CENTER | BOTTOM | ABSBOTTOM | BASELINE
frameborderif the frame should have a border around it1 | 0
heightheight of the inline frame 
longdescURL of a long description of the contents of the frame 
marginheightinternal top/bottom margin for the frame 
marginwidthinternal left/right margin for the frame 
namename of this inline frame 
scrollingif the frame should have scroll barsYES | NO | AUTO
srcURL of the document to go in the frame 
widthwidth of the inline frame 
<img>Definition: image
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignhow text should flow around the pictureLEFT | RIGHT | TOP | TEXTTOP | MIDDLE
| ABSMIDDLE | BOTTOM | ABSBOTTOM | BASELINE
alttext to show if you don't show the picture 
borderborder around the picture 
heighthow tall is the picture 
hspacehorizontal distance between the picture and the text 
ismapis this a clickable map? 
longdescURL of a long description of the image 
namename of this element 
srcwhere to get the picture 
usemapname of the map definition 
vspacevertical distance between the picture and the text 
widthhow wide is the picture 
<input>Definition: form field
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
acceptlist of MIME types for file upload 
accesskeyshortcut key 
alignhow text should flow around the pictureLEFT | RIGHT | TOP | TEXTTOP | MIDDLE
| ABSMIDDLE | CENTER | BOTTOM | ABSBOTTOM | BASELINE
alttext to show if you don't show the picture 
checkedcheck this checkbox or radio button 
disableddon't let the user do anything with this field 
ismapuser server-side image map 
maxlengthmaximum number of characters 
namename of this form field 
onBlurwhen this field loses the focus 
onChangewhen this field is changed 
onFocuswhen this field gets the focus 
onSelectwhen a selection is made 
readonlythe value of this field cannot be changed 
sizehow wide the text field should be 
srcURL of image 
tabindextab order 
typewhat type of fieldTEXT | CHECKBOX | RADIO | PASSWORD | HIDDEN
| SUBMIT | RESET | BUTTON | FILE | IMAGE
usemapuse client-side image map 
valueinitial or only value of this field 
<ins>Definition: inserted formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
citereason for change 
datetimedate and time of change 
<isindex>Definition: form (old version)
Core Attributes: id/class/style/title/lang/dir
promptprompt string to show before the text entry area 
<kbd>Definition: keyboard
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<label>Definition: label
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key 
forform element for which this is a label 
onblurelement lost focus 
onfocuselement got focus 
<legend>Definition: table legend
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key 
aligntext alignment of table legendRIGHT | CENTER | LEFT
<li>Definition: list item
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
typetype of bullet or numeralDISC | CIRCLE | SQUARE | 1 | A | a | I | i
valuewhere to continue counting 
<link>Definition: link
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
charsetcharacter encoding of linked resource 
hrefURL of related document 
hreflanglanguage code 
mediawhat media type the link applies toSCREEN | PRINT | PROJECTION | AURAL
| BRAILLE | ALL | other media
relrelationship to this page 
revreverse relationship to this page 
targetrender in this frame 
typeMIME type of linked resource 
<map>Definition: image map
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
namename of this map 
<menu>Definition: menu list
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
compactreduced inter-item spacing 
<meta>Definition: document information
Core Attributes: lang/dir
contentmetainformation content 
http-equivname of the pretend HTTP header 
nameThe pupose of this META tagKEYWORDS | DESCRIPTION | REFRESH | many others
schemeselect form of content 
<noframes>Definition: alternate content
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<noscript>Definition: alternate content
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<object>Definition: generic embedded object
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignvertical or horizontal alignment 
archivespace-separated list of URLs 
borderlink border width 
classididentifies an implementation 
codebaseoptional baswe URL for applet 
codetypecontent type for code 
datareference to object's data 
declaredeclare but don't instantiate flag 
heightoverride height 
hspacehorizontal gutter 
namesubmit as part of form 
standbymessage to show while loading 
tabindexposition in tabbing order 
typecontent type for data 
usemapuse server-side image map 
vspacevertical gutter 
widthoverride width 
<ol>Definition: ordered list
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
compactreduced inter-item spacing 
startwhere to start counting 
typetype of numerals1 | A | a | I | i
<optgroup>Definition: option group
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
disablednot available for user interaction 
labelfor use in heirarchical menus 
<option>Definition: option
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
disablednot available for user interaction 
labelfor use in heirarchical menus 
selectedthis option is selected by default 
valuewhat's the value if this option is chosen 
<p>Definition: paragraph
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignalignment of text within the paragraphLEFT | CENTER | RIGHT | JUSTIFY
<param>Definition: parameters
Core Attributes: none
iddocument-wide unique id 
namename of the parameter 
typecontent type 
valuevalue of the parameter 
valuetypehow to interpret value 
<pre>Definition: pre-formatted
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
widthmaximum page wide 
<q>Definition: short inline quotation
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
citereason for change 
<s>Definition: strikeout
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<samp>Definition: sample formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<script>Definition: script language
Core Attributes: none
charsetcharacter encoding of linked resource 
defercontinue loading page while downloading script 
eventthe event this script handles 
forobject for which this script is an event handler 
languagedeprecated indicator of languageJAVASCRIPT | LIVESCRIPT | VBSCRIPT | other
srcexternal source for script 
typewhich scripting language to use"text/javascript" | "text/vbscript" | other scripting language
<select>Definition: select item
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
disableddon't let the user do anything with this field 
multipleallow more than one choice 
namename of this form element 
onBlurscript to run when this field loses the focus 
onChangeonChange: what to do when a new option is selected 
onFocusscript to run when this field gets the focus 
sizehow many options to show 
tabindextab order 
<small>Definition: small formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<span>Definition: document partition
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<strike>Definition: strikeout
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<strong>Definition: strong formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<style>Definition: style rules
Core Attributes: lang/dir
mediatype of media this syle applies to 
titleadvisory title 
typestyle language 
<sub>Definition: subscript
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<sup>Definition: superscript
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<table>Definition: table
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignalignment of table to surrounding textLEFT | RIGHT
bgcolorcolor of the background 
bordersize of border around the table 
cellpaddingspace between the edge of a cell and the contents 
cellspacingspace between cells 
datapagesizereserved 
frameparts of outside border that are visibleVOID | BOX | BORDER | ABOVE | BELOW
| LHS | RHS | HSIDES | VSIDES
rulesif there should be internal bordersNONE | ALL | COLS | ROWS | GROUPS
summarysummary of the purpose of the table 
widthwidth of the table as a whole 
<tbody>Definition: table body
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
aligntext alignment 
charalignment character 
charoffoffset for alignment character 
valignvertical gutter 
<td>Definition: table cell
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
abbrabbreviation for header cell 
alignhorizontal alignment of cell contentsLEFT | CENTER | MIDDLE | RIGHT
axiscomma-separated list of related headers 
bgcolorcolor of the background 
charalignment character 
charoffoffset for alignment character 
colspannumber of columns to cover 
headerslist of id's for header cells 
heightheight of cell 
don't word wrap 
rowspannumber of rows to cover 
scopescope covered by header cells 
valignvertical alignment of cell contentsTOP | MIDDLE | CENTER | BOTTOM | BASELINE
widthwidth of cell 
<textarea>Definition: multi-row text
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
accesskeyshortcut key 
colshow many characters wide 
disableddon't let the user do anything with this field 
namename of this form field 
onBlurelement lost focus 
onChangescript to run when the user has changed the textarea 
onFocuselement got focus 
onSelectoption selected 
readonlydon't let the user change the contents of the field 
rowshow many rows 
tabindextab order 
<tfoot>Definition: table foot
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
aligntext alignment 
charalignment character 
charoffoffset for alignment character 
valignvertical gutter 
<th>Definition: table header
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
abbrabbreviation for header cell 
alignhorizontal alignment of cell contentsLEFT | CENTER | MIDDLE | RIGHT
axiscomma-separated list of related headers 
bgcolorcolor of the background 
charalignment character 
charoffoffset for alignment character 
colspannumber of columns to cover 
headerslist of id's for header cells 
heightheight of cell 
don't word wrap 
rowspannumber of rows to cover 
scopescope covered by header cells 
valignvertical alignment of cell contentsTOP | MIDDLE | CENTER | BOTTOM | BASELINE
widthwidth of cell 
<thead>Definition: table head
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
aligntext alignment 
charalignment character 
charoffoffset for alignment character 
valignvertical gutter 
<title>Definition: doc title
Core Attributes: lang/dir
Attributes: none
<tr>Definition: table row
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
alignhorizontal alignment of cell contentsLEFT | CENTER | RIGHT
bgcolorbackground color for row 
charalignment character 
charoffoffset for alignment character 
valignvertical alignment of cell contentsTOP | MIDDLE | BOTTOM | BASELINE
<tt>Definition: teletype
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<u>Definition: underline
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
<ul>Definition: unordered list
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
compactminimize space 
typetype of bulletsDISC | CIRCLE | SQUARE
<var>Definition: variable formatting
Core Attributes: id/class/style/title/lang/dir/onclick../onkey../onmouse..
Attributes: none
TagDescription/AttributesAttribute DescriptionAttribute Values


Return to top of document

End Tags

According to the HTML 4.01 specification some tags have end tags, but their use is considered optional. Additionally, some tags have no end tags at all. Here's the corresponding tag lists:

   


Return to top of document

Extensions (tags)

Sometimes the companies who make browsers will add support for a tag or attribute that is not in the HTML specifications. Some of these become popular and are eventually added to the HTML specification, some go away, and some continue to be supported by only a single browser.

While it is easy to recommend that all HTML pages be written in strict HTML (no deprecated tags or attributes and no browser extensions), there are times when an author may find it convenient not to follow the recommendation.

For example, if you know that your audience will be using the Microsoft Internet Explorer browser, then there's no reason not to use Microsoft's HTML extensions. There's no guarantee that MSIE will continue to use the custom tags, but the history of such extensions shows a lifetime of several years, so the decision to use them may not put the author at risk - particularly for pages with short life-times.

Here is an alphabetical listing of just the names of the extensions (custom tags) available from MS Internet Explorer and Netscape. Note: the <listing>, <xmp>, and <xmp> tags were in earlier HTML specifications and are still supported by browsers.

And here are the attributes that go with these browser extensions:

TagDescription/AttributesAttribute DescriptionAttribute Values
<bgsound>Definition: background sound
Core Attributes: ...
loopnumber of times to play the sound... 
srcURL of sound file (.wav or .mid) 
<embed>Definition: embeds object for plug-in handling (obsolete HTML tag)
Core Attributes: ...
alignhow text flows around the object 
borderborder around the object 
heightheight of the objectobsolete HTML attribute
hiddenmakes object invisible to userHTML tag (not extension by vendor)
hspacehorizontal space between object and text 
namename of the objectHTML tag (not extension by vendor)
paletteWindows pallette (N) or FG/BG colors (I)HTML tag (not extension by vendor)
pluginspaceURL of download instructions 
srcURL of ojbect to be embeddedHTML tag (not extension by vendor)
typeMIME type 
unitsheight/width unitsPIXELS | EN HTML tag (not extension by vendor)
vspacevertical space between object and text 
widthwidth of the objectHTML tag (not extension by vendor)
<ilayer>Definition: Inline version of layer
Core Attributes: style/class
abovestacking order 
backgroundbackground image 
belowstacking order 
bgcolorbackground color 
clipmask off portion of layer 
leftabsolute left offset for object display 
name... 
srcURL of contents 
topabsolute top offset for object display 
visibilityhide from viewSHOW | HIDE | INHERIT
widthwidth allocation 
z-indexstacking order 
<layer>Definition: Container that can be accurately positioned
Core Attributes: style/class
abovestacking order 
backgroundbackground image 
belowstacking order 
bgcolorbackground color 
clipmask off portion of layer 
leftabsolute left offset for object display 
name... 
srcURL of contents 
topabsolute top offset for object display 
visibilityhide from viewSHOW | HIDE | INHERIT
widthwidth allocation 
z-indexstacking order 
<listing>Definition: Defines region of unformatted text
Core Attributes: class/style
Attributes: none
<marquee>Definition: area of scrolling text
Core Attributes: ...
alignposition with respect to adjacent textTOP | MIDDLE | BOTTOM
behaviormethod of scrollingSCROLL | SLIDE | ALTERNATE
bgbolorbackground color 
directiondirection of scrollingLEFT | RIGHT | INFINITE
heightheight of display 
hspacehorizontal space from surrounding text 
loophow many times to scroll 
scrolldelayhow often to move 
scrollamountnumber of pixels to move 
vspacevertical space from surrounding text 
widthwidth of display 
<multicol>Definition:
Core Attributes: style/class
colsnumber of columns 
gutterspace between columns 
widthcolumn width 
<nobr>Definition: Defines area with no line breaks
Core Attributes: none
Attributes: none
<noembed>Definition: alternate text for embedded object
Core Attributes: none
Attributes: none
<spacer>Definition:
Core Attributes: none
alignposition with respect to surrounding text 
heightheight of whitespace (block only) 
sizevertical/horizontal white space 
typedefines type of white spaceHORIZONTAL | VERTICAL | BLOCK
widthwidth of whitespace (block only) 
<wbr>Definition: allows (not forces) line break
Core Attributes: none
Attributes: none
<xmp>Definition: specifies fixed width text
Core Attributes: class/style
Attributes: none


Return to top of document

Extensions (attributes)

In addition to creating new tags, as was described in the section above, browsers have also created new attributes for existing HTML tags. Sometimes these attributes become popular and are added to future HTML specifications. The follow tables show the custom attributes offerred by Netscape and MS Internet Explorer. None of these are part of the HTML 4.01 specification.

bodybasefonthrimgareaisindexmetaforminput
bgproperties (I)
leftmargin (I)
(NI)
onblur (NI)
onfocus (NI)
topmargin (I)
name (I) color (I)
(I)
controls (I)
dynsrc (I)
loop (I)
start (I)
lowsrc (N)
name (N)
notab (I)
taborder (I)
target (NI)
action (I) charset (I) name (N) notab (I)
taborder (I)

textareatabletrth/tdcaptionframe
wrap (N) background (I)
bordercolor (NI)
bordercolordark (I)
bordercolorlight (I)
cols (NI)
height (NI)
hspace (N)
(I)
align (I)
vspace (N)
bordercolor (I)
bordercolordark (I)
bordercolorlight (I)
(NI)
background (I)
bordercolor (I)
bordercolordark (I)
bordercolorlight (I)
(NI)
valign (I) border (N)
bordercolor (N)
frameborder (NI)
framespacing (I)

framesetappletembeddiv
bordercolor (N) mayscript (N) align (N)
border (N)
height (HTML)
hidden (HTML)
hspace (N)
name (HTML)
palette (HTML)
pluginspace (N)
src (HTML)
type (N)
units (HTML)
vspace (N)
width (all)
(I)