Attributes reference

AttributeElement to be used withValuePurpose
actionformURL of the scriptform handler script
aligndiv, h1, h2, h3, h4, h5, h6, pleft, center, right, justifytext alignment
aligntableleft, center, rightrelative to window
alignth, td, trleft, center, right, justifytable alignment
aligncaptiontop, bottom, left, rightalignment relative to table
alignHRleft, center, right
alignapplet, iframe, img, input, objecttop, middle, bottom, left, rightvertical or horizontal alignment
alinkbodycolorcolor of selected links
altapplet, area, imgtexttext description
backgroundbodyURLimage for document background
bgcolorbodycolordocument background color
bgcolortablecolorbackground table color
bgcolortrcolorbackground row color
bgcolorth, tdcolorbackground cell color
borderimgpixelsborder width
bordertablepixelscontrols frame width around table
cellpaddingtablelengthspacing within cells
cellspacingtablelengthspacing between cells
checkedinputcheckedtrue or false value for check boxes and radio buttons
clearbrleft, right, all, nonecontrols text flow next to a floated object (i.e. image)
colorfont, basefontcolorsets text color
colstextareanumberwidth of textarea box
colspanth, tdnumbernumber of cols spanned in a cell
coordsa, arealengths in a comma-separated listcoordinates of imagemap areas
frameborderframe0, 1borders off or on
heightimglengthimage height
heightth, tdlengthcell height
hrefa, area, linkURLdestination source URL
hrefbaseURLbase URL
hspaceimagepixelshorizontal gutter
linkbodycolorcolor of links
longdescimgURLlink to long description
maxlengthinputnumbernumber of maximum allowed characters for text fields
mediastyle, linkscreen, handheld, print, allmedia type
methodformpost, getHTTP method for submitting form
multipleselectmultipleenables multiple selections in drop-down list
rowspanth, tdnumbernumber of rows spanned by cell
selectedoptionselectedsets selected option in drop-down list box
shapea, arearect, circle, poly, defaultsets imagemap area shape
sizeHRpixelssize of horizontal rule
sizeselectnumbersets number of rows visible
srcimgURLimage location
startolnumberstarting number
targeta, link, area, basetarget name or _blank, _self, _top, _parentdisplay in frame
textbodycolordefault text color
titleall elements except base, basefont, head, html, meta, param, script, titletextsets text to display in tool tip
typeinputbutton, checkbox, file, hidden, image, password, radio, reset, submit, texttype of input control
typeuldisc, square, circlelist style for an unordered list
typeol1, a, A, i, Ilist style for an ordered list
typebuttonbutton, submit, resettype of button
usemapimgURLclient-side imagemap
valigntr, th, tdtop, middle, bottom, baselinevertical alignment
vlinkbodycolorsets color of visited links
vspaceimgpixelssets size of vertical gutter
widthhrlengthwidth of horizontal rule
widthimglengthimage width
widthtablelengthsets table width
widthth, tdlengthcell width