# HTML Attribute Index

Select a attribute to visit its documentation.

Attribute | IE | Netscape | Mozilla | Opera | Safari
--- | --- | --- | --- | --- | ---
abbr Abbreviation for a header cell in a table. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
above Name of the layer above the element. | no | 4.0 | no | no | no
accept Specifies accepted MIME types for file uploads. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
accept-charset Comma or space-delimited list of character encodings that are accepted by the server processing the form. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
accesskey Hot-key shortcut for the element. | 5.5+ | no | no | no | 1.0+
action URL for submitting the form. | 2.0 | 1.0+ | 1.0+ | 4.0+ | 1.0+
align Defines the alignment of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
alink (body) Specifies the color for active links in the document. Specify either a color name or RGB color. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
allowtransparency Specifies whether the background of the element may be transparent. | 5.5+ | no | no | no | no
alt Specifies alternative text to display if the element cannot be displayed as expected. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
application Specifies whether the content of the element is considered an HTA application. | 5.0+ | no | no | no | no
archive URL or list of URLs that need to be preloaded for the element. | 3.0+ | 4.0+ | 1.0+ | 4.0+ | 1.0+
autocomplete Specifies whether form autocompletion, which automatically completes the fields on a form after the user has typed enough letters, is on or off. | 5.0+ | no | no | no | 1.0+
axis Specifies a name for a group of headers. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
background Specifies the URL for the background image for the document or element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
balance (bgsound) Number between -10000 and +10000 that specifies the sound balance for the left and right speakers. | no | no | no | no | no
behavior Specifies the movement behavior of the element. | 4.0+ | no | no | no | 1.0+
below Name of the layer below the element. | no | 4.0+ | no | no | no
bgcolor Specifies the background color for the document or element. Specify either a color name or RGB color. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
bgproperties (body) If set, specifies that the background image is fixed and will not scroll. | 4.0+ | no | no | no | 1.0+
border Width (in pixels) of the border around the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
bordercolor Specifies the color of the border of the element. Specify either a color name or RGB color code. | 4.0+ | no | no | no | no
bordercolordark Specifies the darker color of the border of the element, if the element has a 3D effect. Specify either a color name or RGB color code. | 4.0+ | no | no | no | no
bordercolorlight Specifies the lighter color of the border of the element, if the element has a 3D effect. Specify either a color name or RGB color code. | 4.0+ | no | no | no | no
bottommargin (body) Bottom margin for the body of the document. | 4.0+ | no | no | no | no
cellpadding Number of pixels between the content of a cell and the edge of a cell. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
cellspacing Number of pixels between cells. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
char Specifies which character to use to set the alignment for the element. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
charoff Number of characters to offset the other column characters from the character specified by char. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
charset Specifies the character set associated with the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
checked If present, specifies that the element should be checked. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
cite URL for the source of the quote. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
class CSS class assigned to the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
clear (br) Specifies how the text flows with regards to any surrounding elements. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
clip Specifies x,y coordinates of the upper left and lower right corners of the element. | no | 4.0+ | no | no | no
code URL of the Java class file for the element. | 2.0+ | 2.0+ | 1.0+ | no | 1.0+
codebase URL for the code base for the element. | 2.0+ | 2.0+ | 1.0+ | no | 1.0+
color Name of the color or RGB code for the color for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
cols Number of characters wide that the element should be. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
colspan Number of columns that the element should span. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
compact If true, specifies that the element should be visually compressed by compacting whitespace between its child elements. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
content High-level meta description of the contents of the document. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
contenteditable Specifies whether or not the content of the element is editable, or if the element inherits the value of this property from its parent. | 4.0+ | no | no | no | 1.0+
coords Comma-delimited x, y coordinates for the element. | 4.0+ | 1.1+ | 1.0+ | 7.0+ | 1.0+
data (comment) Specifies a reference URL for the comment. | 4.0+ | no | no | no | no
data Specifies the URL for data used by the element. | 4.0+ | 4.0+ | 1.0+ | 7.0+ | 1.0+
datafld For a databound element, specifies the field supplying the data. | 4.0+ | no | no | no | no
dataformatas Specifies whether the element treats data as plain text or as html. | 4.0+ | no | no | no | no
datapagesize For a databound element, specifies the number of records to display in the element. | 4.0+ | no | no | no | no
datasrc For a databound element, specifies the id of the data source. | 4.0+ | no | no | no | no
datetime Specifies the date and time that the element was modified. | 4.0+ | 6.0+ | 1.0+ | 7.0+ | 1.0+
declare If present, declares the object associated with the element, but does not instantiate it. | 4.0+ | 3.0+ | 1.0+ | 4.0+ | 1.0+
defer If present, specifies that execution of the element is deferred. | 3.0+ | 2.0+ | 1.0+ | 7.0+ | 1.0+
dir Direction of the element text. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
direction Specifies the direction of movement for the element text. | 4.0+ | no | no | no | 1.0+
disabled Specifies whether or not the element is disabled. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
dynsrc URL of a video clip file. | 4.0+ | no | no | no | no
enctype Specifies the MIME type for the element data being sent to the server. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
event Specifies the event handler for the element. | 3.0+ | no | no | no | no
face Name of the font. You can specify more than one font face. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
for Id corresponding to the form or event associated with the element. | 4.0+ | 1.1+ | 1.0+ | no | 1.0+
frame Specifies which edges of the element should have a border. | 2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
frameborder Specifies whether the frame has a border. | 2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
framespacing Number of pixels between frames. | 4.0+ | no | no | no | no
galleryimg Specifies whether the image toolbar is visible. | 6.0+ | no | no | no | no
headers Space-delimited list of header cell id's for header cells that are related to the element. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
height Height of the element (in pixels). | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
hidden If true, specifies that the element is hidden. | no | no | no | no | 1.0+
hidefocus Specifies whether the element shows a visual cue when it has focus. | 5.5+ | no | no | no | no
href Path or URL for the linked document or object. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
hreflang Language of the linked document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
hspace Number of pixels of space to the left and right of the element (i.e. horizontal margin). | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
http-equiv Sets an HTTP response header for the value in the content attribute. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
id Unique identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
label Short text description for the element. | 4.0+ |  | 1.0+ | 4.0+ | 1.0+
lang Language code for the content of the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
language (script) Specifies the scripting language. | 3.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
language Script language for the element. | 3.0+ | 2.0+ | 1.0+ | no | 1.0+
left Number of pixels that the element is offset from the left. | no | 4.0+ | no | no | no
leftmargin (body) Left margin for the body of the document. | 4.0+ | no | no | no | 1.0+
link (body) Specifies the color for links in the document. Specify either a color name or RGB color. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
longdesc URL that contains a long description of the contents of the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
loop Number of times to loop the media file. Specify "infinite" for a continuous loop. | 2.0+ | no | no | no | 1.0+
lowsrc URL for a low-resolution version of an image. | 4.0+ | no | no | no | no
marginheight Top and bottom margins (in pixels) for the document. | 4.0+ | 4.0+ | 1.0+ | 7.0+ | 1.0+
marginwidth Left and right margins (in pixels) for the document. | 4.0+ | 4.0+ | 1.0+ | 7.0+ | 1.0+
maxlength Maximum number of characters that a user may type into the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
mayscript (applet) If true, indicates that scripts in the document may access the applet. | no |  | no | no | 1.0+
media Media type associated with the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
method Specifies the method to use to transfer form data to the server. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
methods (a) Possible methods that may be called on the element. | 4.0+ | no | no | no | no
multiple If present, specifies that a user can select multiple options. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
name Unique name identifier for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
nohref If present, specifies that the element has no href. | 4.0+ |  | 1.0+ | 4.0+ | 1.0+
noresize If present, specifies that the element cannot be resized. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
noshade If present, specifies that the element should not have shading. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
nowrap If present, specifies that the element text should not wrap. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
object (applet) Name of the resource containing a serialized version of the applet. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
overflow Specifies whether to "clip" the content of the layer if the content exceeds the layer boundaries, or leave the content as-is. | no | 4.0+ | no | no | no
pagex Horizontal position of the element in the browser window. | no | 4.0+ | no | no | 1.0+
pagey Vertical position of the element in the browser window. | no | 4.0+ | no | no | 1.0+
palette Specifies whether to use the background or foreground color palette for the element. | no | 4.0+ | no | no | no
pluginspage Specifies a web page with installation information for the plugin for the element. | no | 4.0+ | no | no | 1.0+
point-size Specifies the point size of the font. | no | 4.0+ | no | no | no
profile Specifies the URL for the meta-information dictionary. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
readonly If present, specifies that the element is read-only. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
rel Defines the relationship of the linked document to the current document. | 3.0+ | 4.0+ | 1.0+ | no | 1.0+
rev Defines the relationship of the current document to the linked document. | 3.0+ | 4.0+ | 1.0+ | no | 1.0+
rightmargin (body) Right margin (in pixels) for the body of the document. | 4.0+ | no | no | no | no
rows Number of rows in the element. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
rowspan Number of rows that the element should span. | 4.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
rules Specifies the dividing rules for the element. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
scheme Specifies the scheme for the value of the content attribute. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
scope Specifies cells that the element is a header for. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
scroll (body) Specifies whether or not scroll bars are visible. | 4.0+ | no | no | no | no
scroll Specifies whether or not the element has scroll bars. | 4.0+ | no | no | no | no
scrollamount Specifies the number of pixels between the end of one block of content and the start of the next while scrolling. | 3.0+ | no | no | no | 1.0+
scrolldelay Specifies the delay (in milliseconds) between the end of one block of scrolling content and the start of the next. | 3.0+ | no | no | no | 1.0+
scrolling Specifies whether or not the element has scroll bars. | 2.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
selected If present, specifies that the element selected by default. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
shape For an anchor that defines a hyperlink, shape of the selectable hypertext region. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
size Size of the element. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
span Number of columns that this column should span. | 4.0+ | 6.0+ | 1.0+ | 7.0+ | 1.0+
src URL for the source for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
standby Text content to dislay while the object associated with the element loads. | 3.0+ | 4.0+ | 1.0+ | 4.0+ | 1.0+
style Inline style for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
summary Summary of the contents of the element. | 4.0+ | 1.1+ | 1.0+ | 7.0+ | 1.0+
tabindex Position of the element in the tabbing order for the document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
target Target window to use for opening the linked document. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
text (body) Specifies the color for text of the document. Specify either a color name or RGB color. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
title Short text description for the element. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
top Number of pixels that the element is offset from the top. | 4.0+ | no | no | no | 1.0+
truespeed If present, specifies that the scrolldelay value should not be rounded up to 60 milliseconds. | 4.0+ | no | no | no | 1.0+
type (a) Specifies the type of linked file. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (button) Type of button element. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (embed) MIME type for the embedded object. | 4.0+ |  | 1.0+ | 7.0+ | no
type (input) Specifies the type of input control. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (li) Specifies the type of bullet, number, or letter to use in a list. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (link) Specifies the type of linked file. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (object) Specifies the MIME type for the element. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (ol) Specifies the type of numbering system to use in a list. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (param) Specifies the MIME type for the element. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
type (script) Specifies the type of script. | 3.0+ | 2.0+ | 1.0+ | 4.0+ | 1.0+
type (style) Specifies the MIME type for the stylesheet language. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
type (ul) Specifies the type of bullet to use in an unordered list. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
units Specifies the unit for the height and width of the element. | no | 4.0+ | no | no | no
unselectable Specifies whether or not the element is unselectable. | 5.5+ | no | no | no | no
urn (a) Uniform resource name (URN) for the link. | 4.0+ | no | no | no | no
usemap Specifies a URL to use for an image map or object map. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
valign Vertical alignment of the element. | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
value Text containing the value of the element. | 4.0+ | 1.1+ | 1.0+ | 7.0+ | 1.0+
valuetype Specifies the type of value for the element. | 4.0+ | 1.1+ | 1.0+ | 7.0+ | 1.0+
visibility Specifies whether the element is hidden or shown. | no | 4.0+ | no | no | no
vlink (body) Specifies the color for visited links in the document. Specify either a color name or RGB color. | 4.0+ |  | 1.0+ | 7.0+ | 1.0+
volume (bgsound) Number between -10000 and 0 that specifies the volume for the sound file. | no | no | no | no | no
vspace Number of pixels of space above and below the element (i.e. vertical margin). | 2.0+ | 1.0+ | 1.0+ | 7.0+ | 1.0+
weight Specifies the weight of the font. | no | 4.0+ | no | no | no
width Width of the element (pixels or percentage). | 2.0+ | 1.1+ | 1.0+ | 4.0+ | 1.0+
wrap Specifies word wrap behavior within the element. | 4.0+ | no | no | no | 1.0+
xml:space If set, specifies whether to override the default whitespace handling within the element. | 5.0+ | no | no | no | no
xmlns Namespace for XML-based tags. | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+
z-index Positive integer specifying where an element is stacked in relation to other layers. | no | 4.0+ | no | no | 1.0+