(X)HTML Elements and Attributes

Tag/Attribute Description Vers.
--Most TAGs-- The following attributes may be used with most (X)HTML tags  
CLASS For identifying a set of tags in order to apply styles  
EVENT For triggering a script  
ID For identifying particular tags for JavaScript functions and styles  
lang For specifying the language an element is written in  
STYLE For adding local style sheet information  
TITLE For labeling elements with tool tips  
!-- For inserting invisible comments  
!DOCTYPE Required. For indicating version of (X)HTML used  
A For creating links and anchors  
Accesskey For adding a keyboard shortcut to a link  
event For triggering a script  
HREF For specifying URL of page or name of anchor that link goes to  
NAME For marking a specific area of page that a link might jump to  
tabindex For defining the order in which the Tab key takes the visitor through links and form elements  
TARGET For specifying a particular window or frame for a link D
abbr For explaining meaning of abbreviations  
acronym For explaining meaning of acronyms  
address For formatting the e-mail address of the Web page designer  
APPLET For inserting applets D
CODE For specifying the URL of the applet's code D
WIDTH, HEIGHT For specifying width and height of an applet D
AREA For specifying coordinates of image maps  
Accesskey For adding a keyboard shortcut to a particular region of the map  
alt For giving information about an area  
COORDS For giving coordinates of area in image map  
HREF For specifying destination URL of link in area in image map  
NOHREF For making a click in image map have no effect  
SHAPE For specifying shape of area in image map  
TARGET For specifying window or frame that link should be displayed in D
B For displaying text in boldface  
BASE    
HREF For specifying the URL to be used to generate relative URLs  
TARGET For specifying the default target for the links on the page D
BASEFONT For specifying default font specifications throughout page D
COLOR For specifying the default color for text D
FACE For specifying the default font for text D
SIZE For specifying the default size for text D
BGSOUND For inserting background sound for page IE
LOOP For specifying how many times sound should play IE
SRC For specifying URL of sound IE
BIG For making text bigger than surrounding text  
blink For making text disappear and reappear N
BLOCKQUOTE For setting off block of text on page  
cite For giving the URL of the source of the quote  
BODY For enclosing main section of page  
ALINK, LINK, VLINK For specifying color of active links, new links, and visited links  D
BACKGROUND For specifying a background image D
BGCOLOR For specifying the background color D
LEFTMARGIN,
topmargin
For specifying left and top margins IE
TEXT For specifying color of text D
BR For creating a line break  
CLEAR For stopping text wrap D
button For creating buttons  
accesskey For adding a keyboard shortcut to a button  
disabled To gray out a button until some other event occurs  
event For associating the button with a script  
NAME For identifying buttons (perhaps for a JavaScript function)  
type For using the button as a form element  
VALUE For specifying what kind of button to create  
CAPTION For creating a caption for a table  
ALIGN For placing caption above or below table D
CENTER For centering text, images, or other elements D
CITE For marking text as a citation  
CODE For marking text as computer code  
COL For joining columns in a table into a non-structural group  
ALIGN, valign For specifying alignment of columns in column group  
SPAN For specifying number of columns in column group  
width For specifying a column's width  
COLGROUP For joining columns in a table into a structural column group  
ALIGN, valign For specifying alignment of columns in column group  
SPAN For specifying number of columns in column group  
width For specifying the default width for the enclosed colelements  
DD For marking a definition in a list  
DEL To mark deleted text by striking it out  
DIV For dividing a page into logical sections  
ALIGN For aligning a given section to left, right, or center D
CLASS For giving a name to each class of divisions  
ID For giving a unique name to a particular division  
DL For creating a definition list  
DT For marking a term to be defined in a list  
EM For emphasizing text, usually with italics  
EMBED For adding multimedia N+IE*
ALIGN For aligning controls N+IE*
AUTOSTART For making multimedia event begin automatically N+IE*
CONTROLS For displaying play, pause, rewind buttons N+IE*
LOOP For determining if multimedia event should play more than once N+IE*
SRC For specifying URL of multimedia file N+IE*
WIDTH, HEIGHT For specifying size of controls N+IE*
fieldset For grouping a set of form elements together  
FONT For changing the size, face, and color of text D
COLOR For changing text color D
FACE For changing text font D
SIZE For changing text size D
FORM For creating fill-in forms  
action For giving URL of CGI script for form  
enctype For uploading files in the proper format  
METHOD For determining how form should be processed  
frame For creating frames F
BORDER For determining thickness of frame borders N+IE
BORDERCOLOR For determining color of frame borders N+IE
frameborder For displaying or hiding frame borders F
FRAMESPACING For adding space between frames IE
longdesc For linking to a document with more information F
NAME For naming frame so it can be used as target F
NORESIZE For keeping users from resizing a frame F
marginwidth,
MARGINHEIGHT
For specifying a frame's left and right, and top and bottom margins  F
scrolling For displaying or hiding a frame's scrollbars F
SRC For specifying initial URL to be displayed in frame F
target For specifying which frame a link should be opened in F
title For indicating a frame's purpose F
fRAMESET For defining a frameset F
BORDER For determining thickness of frame borders N+IE
BORDERCOLOR For determining color of frame borders N+IE
COLS For determining number and size of frames F
frameborder For displaying or hiding frame borders F
FRAMESPACING For adding space between frames IE
ROWS For determining number and size of frames F
H1, h2, h3, h4, h5, h6 For creating headers  
ALIGN For aligning headers D
HEAD For creating head section of page  
HR For creating horizontal rules  
ALIGN For aligning horizontal rules D
NOSHADE For displaying horizontal rules without shading D
SIZE For specifying height of horizontal rule D
WIDTH For specifying width of horizontal rule D
HTML For identifying a text document as an HTML document  
I For displaying text in italics  
IFRAME For creating floating frames D*
ALIGN For aligning floating frames D*
frameborder For displaying or hiding frame borders D*
height For specifying the height of an iframe D*
name For specifying the name of the floating frame, to be used as a target D*
WIDTH, HEIGHT For specifying size of floating frame D*
SCROLLING For displaying or hiding scrollbars D*
SRC For specifying the URL of the initial page D*
IMG For inserting images on a page  
ALIGN For aligning images and for wrapping text around images D
ALT For offering alternate text that is displayed if image is not  
border For specifying the thickness of the border, if any D
HSPACE, VSPACE For specifying amount of space above and below, and to the sides of an image D
SRC For specifying URL of image  
USEMAP For specifying the image map that should be used with the referenced image  
WIDTH, HEIGHT For specifying size of image so that page is loaded more quickly, or for scaling  
INPUT For creating form elements  
accesskey For adding a keyboard shortcut to a form element  
align For aligning form elements D
CHECKED For marking a radio button or check box by default  
disabled For graying out form elements until some other event occurs  
event For triggering a script with an event like ONFOCUS, ONBLUR, etc.  
MAXLENGTH For determining maximum amount of characters that can be entered in form element  
NAME For identifying data collected by this element  
SIZE For specifying width of text or password box  
SRC For specifying URL of active image  
READONLY For keeping visitors from changing certain form elements  
TABindex For specifying order in which Tab key should take a visitor through links and form elements  
TYPE For determining type of form element  
VALUE For specifying initial value of form element  
INS For marking inserted text with an underline  
KBD For marking keyboard text  
label For labeling form elements  
for For specifying which form element the label belongs to  
LAYER For positioning elements N
legend For labeling fieldsets  
align For aligning legends D
LI For creating a list item  
Type For determining which symbols should begin the list item D
VALUE For determining the initial value of the first list item D
LINK For linking to an external style sheet  
href For specifying the URL of the style sheet  
media For noting a style sheet's purpose  
title For labeling alternate style sheets  
type For noting a style sheet's MIME type  
rel For indicating that a style sheet is primary or alternate  
MAP For creating a client-side image map  
NAME For naming map so it can be referenced later  
marquee For creating moving text IE
behavior For controlling how the text should move (scroll, slide, alternate) IE
direction For controlling if the text moves from left to right or right to left IE
LOOP For specifying repetitions IE
SCroLLAMOUNT For specifying amount of space between each marquee repetition IE
SCROLLDELAY For specifying amount of time between each marquee repetition IE
META    
content For adding extra information about the Web page itself  
http-equiv For creating jumps to other pages, setting default scripting language, and declaring character encoding  
NAME For identifying extra information to the Web page  
NOBR For keeping all the enclosed elements on one line N+IE
NOFRAMES For providing alternatives to frames F
noscript For providing alternatives to scripts  
OBJECT For embedding objects in Web pages  
align For aligning objects D
border For creating (or hiding) a border around an object D
classid For identifying the kind of object being embedded  
codebase For defining the base URL of the source object  
data For identifying the source of the multimedia file to be embedded  
hspace, vspace For specifying amount of space around an object D
name For identifying the object  
standby For displaying a message as the object is loading  
type For noting the an object's MIME type  
width, height For specifying the dimensions of the object's box  
OL For creating ordered lists  
TYPE For specifying the symbols that should begin each list item D
START For specifying the initial value of the first list item D
optgroup For dividing a menu into submenus  
disabled For graying out menu options until some other event occurs  
label For specifying how the option should appear in the menu  
OPTION For creating the individual options in a form menu  
disabled For graying out menu options until some other event occurs  
label For specifying how the option should appear in the menu  
SELECTED For making a menu option be selected by default in a blank form  
VALUE For specifying the initial value of a menu option  
P For creating new paragraphs  
ALIGN For aligning paragraphs D
param For setting properties of an object  
name For identifying the kind of property  
value For setting the value of the named property  
PRE For displaying text exactly as it appears in HTML document  
Q For quoting short passages of text  
cite For giving the URL of the source of the quote  
S (Same as STRIKE) For displaying text with a line through it D
SAMP For displaying sample text--in a monospaced font  
script For adding "automatic" scripts to a page  
charset For specifying the character set an external script is written in  
Language For specifying the scripting language the script is written in D
SRC For referencing an external script  
TYPE For specifying the scripting language the script is written in  
Select For creating menus in forms  
disabled For graying out menu options until some other event occurs  
NAME For identifying the data collected by the menu  
MULTIPLE For allowing users to choose more than one option in the menu  
SIZE For specifying the number of items initially visible in the menu  
small For decreasing the size of text  
SPAN For creating custom character styles  
class For naming individual custom character styles  
ID For identifying particular HTML elements  
strike (Same as S) For displaying text with a line through it D
STRONG For emphasizing text logically, usually in boldface  
style For adding style sheet information to a page  
media For indicating a style sheet's purpose  
type For indicating a style sheet's MIME type  
sub For creating subscripts  
sup For creating superscripts  
table For creating tables  
align For aligning an entire table with respect to the window D
background For specifying a background image for the table N+IE
BGCOLOR For specifying the background color of the table D
border For specifying the thickness, if any, of the border  
bordercolor For specifying a solid color for the border IE
BORdERCOLORDARK For specifying the darker (shaded) color of the border IE
Bordercolorlight For specifying the lighter (highlighted) color of the border IE
cellpadding For setting the space between a cell's contents and its borders  
cellspacing For setting the amount of space between cells  
frame For displaying external borders  
height For specifying the height of the table N+IE
rules For displaying internal borders  
width For specifying the size of the table  
tbody For identifying the body of the table  
align, valign For aligning the contents of the body of the table  
TD, TH For creating regular and header cells, respectively, in a table  
align, valign For aligning a cell's contents horizontally or vertically  
BGCOLOR For changing the background color of a cell D
char For aligning the contents of a cell with respect to a character  
colspan For spanning a cell across more than one column  
nowrap For keeping a cell's contents on one line D
rowspan For spanning a cell across more than one row  
width, height For specifying the size of the cell D
textarea For creating text block entry areas in a form  
accesskey For adding a keyboard shortcut to a text area  
disabled For graying out a text block until some other event occurs  
NAME For identifying the data that is gathered with the text block  
readonly For protecting a text area's contents  
ROWS, COLS For specifying the number of rows and columns in the text block  
TFOOT, THEAD For identifying the footer and header area of a table  
align, valign For aligning the footer or header cells  
TITLE Required. For creating the title of the page in title bar area   
TR For creating rows in a table  
ALIGN, VALIGN For aligning contents of row horizontally or vertically  
BGCOLOR For changing color of entire row D
TT For displaying text in monospaced font  
U For displaying text with line underneath it D
UL For creating unordered lists  
type For specifying the markers that should precede each list item D
wbr For creating discretional line breaks N+IE