Legend: Deprecated, Loose DTD, Frameset DTD Name Related Elements Type Default Depr. DTD Comment abbr TD, TH %Text; accept-charset FORM %Charsets; accept FORM, INPUT %ContentTypes; abbreviation for header cell list of supported charsets list of MIME types for file upload accesskey A, AREA, BUTTON, INPUT, LABEL, LEGEND, TEXTAREA %Character; accessibility key character action FORM %URI; #REQUIRED server-side form handler align CAPTION %CAlign; D L relative to table align APPLET, IFRAME, IMG, INPUT, OBJECT %IAlign; D L vertical or horizontal alignment align LEGEND %LAlign; D L relative to fieldset align TABLE %TAlign; D L table position relative to window align HR (left center right) D L align DIV, H1, H2, H3, H4, H5, H6, P (left center right justify) D L align, text alignment align COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR (left center right justify char) alink BODY %Color; D L color of selected links
alt APPLET %Text; D L short description alt AREA, IMG %Text; #REQUIRED short description alt INPUT CDATA short description archive APPLET CDATA D L archive OBJECT CDATA axis TD, TH CDATA background BODY %URI; D L bgcolor TABLE %Color; D L bgcolor TR %Color; D L bgcolor TD, TH %Color; D L bgcolor BODY %Color; D L border TABLE %Pixels; comma-separated archive list space-separated list of URIs comma-separated list of related headers texture tile for document background background color for cells background color for row cell background color document background color controls frame width around table border IMG, OBJECT %Pixels; D L link border width cellpadding TABLE %Length; spacing within cells cellspacing TABLE %Length; spacing between cells
char COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR %Character; alignment char, e.g. char=':' charoff COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR %Length; offset for alignment char charset A, LINK, SCRIPT %Charset; checked INPUT (checked) cite BLOCKQUOTE, Q %URI; cite DEL, INS %URI; char encoding of linked resource for radio buttons and check boxes URI for source document or msg info on reason for change class BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, CDATA space-separated list of classes classid OBJECT %URI; identifies an implementation clear BR (left all right none) none D L control of text flow code APPLET CDATA D L applet class file codebase OBJECT %URI; codebase APPLET %URI; D L codetype OBJECT %ContentType; base URI for classid, data, archive optional base URI for applet content type for code
color BASEFONT, FONT %Color; D L text color cols FRAMESET %MultiLengths; F list of lengths, default: 100% (1 col) cols TEXTAREA NUMBER #REQUIRED colspan TD, TH NUMBER 1 compact DIR, DL, MENU, OL, UL (compact) D L content META CDATA #REQUIRED coords AREA %Coords; coords A %Coords; data OBJECT %URI; datetime DEL, INS %Datetime; declare OBJECT (declare) defer SCRIPT (defer) number of cols spanned by cell reduced interitem spacing associated information comma-separated list of lengths for use with clientside image maps reference to object's data date and time of change declare but don't instantiate flag UA may defer execution of script dir FRAME, FRAMESET, IFRAME, PARAM, SCRIPT (ltr rtl) direction for weak/neutral text
dir BDO (ltr rtl) #REQUIRED directionality disabled BUTTON, INPUT, OPTGROUP, OPTION, SELECT, TEXTAREA (disabled) unavailable in this context enctype FORM %ContentType; "application/xwww- formurlencoded" face BASEFONT, FONT CDATA D L for LABEL IDREF frame TABLE %TFrame; frameborder FRAME, IFRAME (1 0) 1 F headers TD, TH IDREFS comma-separated list of font names matches field ID value which parts of frame to render request frame borders? list of id's for header cells height IFRAME %Length; L frame height height TD, TH %Length; D L height for cell height IMG, OBJECT %Length; override height height APPLET %Length; #REQUIRED D L initial height href A, AREA, LINK %URI; href BASE %URI; URI for linked resource URI that acts as base URI hreflang A, LINK %LanguageCode; language code
hspace APPLET, IMG, OBJECT %Pixels; D L horizontal gutter http-equiv META NAME HTTP response header name id BASE, HEAD, HTML, META, SCRIPT, STYLE, ID document-wide unique id ismap IMG, INPUT (ismap) label OPTION %Text; label OPTGROUP %Text; #REQUIRED use server-side image map for use in hierarchical menus for use in hierarchical menus lang BASEFONT, BR, FRAME, FRAMESET, IFRAME, PARAM, SCRIPT %LanguageCode; language code language SCRIPT CDATA D L predefined script language name link BODY %Color; D L color of links longdesc IMG %URI; longdesc FRAME, IFRAME %URI; F marginheight FRAME, IFRAME %Pixels; F marginwidth FRAME, IFRAME %Pixels; F link to long description (complements alt) link to long description (complements title) margin height in pixels margin widths in
pixels maxlength INPUT NUMBER media STYLE %MediaDesc; media LINK %MediaDesc; method FORM (GET POST) GET multiple SELECT (multiple) max chars for text fields designed for use with these media for rendering on these media HTTP method used to submit the form default is single selection name BUTTON, TEXTAREA CDATA name APPLET CDATA D L allows applets to find each other name SELECT CDATA field name name FORM CDATA name FRAME, IFRAME CDATA F name IMG CDATA name of form for scripting name of frame for targetting name of image for scripting name A CDATA named link end name INPUT, OBJECT CDATA name MAP CDATA #REQUIRED submit as part of form for reference by usemap
name PARAM CDATA #REQUIRED property name name META NAME nohref AREA (nohref) noresize FRAME (noresize) F metainformation name this region has no action allow users to resize frames? noshade HR (noshade) D L nowrap TD, TH (nowrap) D L suppress word wrap object APPLET CDATA D L serialized applet file onblur A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA the element lost the focus onchange INPUT, SELECT, TEXTAREA the element value was changed onclick a pointer button was clicked ondblclick a pointer button was double clicked
onfocus A, AREA, BUTTON, INPUT, LABEL, SELECT, TEXTAREA the element got the focus onkeydown a key was pressed down onkeypress a key was pressed and released onkeyup a key was released onload FRAMESET F onload BODY all the frames have been loaded the document has been loaded
onmousedown a pointer button was pressed down onmousemove a pointer was moved within onmouseout a pointer was moved away onmouseover a pointer was moved onto onmouseup a pointer button
was released onreset FORM the form was reset onselect INPUT, TEXTAREA onsubmit FORM onunload FRAMESET F onunload BODY profile HEAD %URI; some text was selected the form was submitted all the frames have been removed the document has been removed named dictionary of meta info prompt ISINDEX %Text; D L prompt message readonly TEXTAREA (readonly) readonly INPUT (readonly) for text and passwd rel A, LINK %LinkTypes; forward link types rev A, LINK %LinkTypes; reverse link types rows FRAMESET %MultiLengths; F list of lengths, default: 100% (1 row) rows TEXTAREA NUMBER #REQUIRED
rowspan TD, TH NUMBER 1 rules TABLE %TRules; scheme META CDATA scope TD, TH %Scope; number of rows spanned by cell rulings between rows and cols select form of content scope covered by header cells scrolling FRAME, IFRAME (yes no auto) auto F scrollbar or none selected OPTION (selected) shape AREA %Shape; rect shape A %Shape; rect controls interpretation of coords for use with clientside image maps size HR %Pixels; D L size FONT CDATA D L size INPUT CDATA size BASEFONT CDATA #REQUIRED D L [+ -]nn e.g. size="+1", size="4" specific to each type of field base font size for FONT elements size SELECT NUMBER rows visible span COL NUMBER 1 span COLGROUP NUMBER 1 COL attributes affect N columns default number of columns in group
src SCRIPT %URI; src INPUT %URI; src FRAME, IFRAME %URI; F src IMG %URI; #REQUIRED standby OBJECT %Text; start OL NUMBER D L URI for an external script for fields with images source of frame content URI of image to embed message to show while loading starting sequence number style BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, %StyleSheet; associated style info summary TABLE %Text; purpose/structure for speech output tabindex A, AREA, BUTTON, INPUT, OBJECT, SELECT, TEXTAREA NUMBER position in tabbing order target A, AREA, BASE, FORM, LINK %FrameTarget; L render in this frame text BODY %Color; D L document text color title BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, %Text; advisory title type A, LINK %ContentType; advisory content
type type OBJECT %ContentType; type PARAM %ContentType; type SCRIPT %ContentType; #REQUIRED type STYLE %ContentType; #REQUIRED type INPUT %InputType; TEXT content type for data content type for value when valuetype=ref content type of script language content type of style language what kind of widget is needed type LI %LIStyle; D L list item style type OL %OLStyle; D L numbering style type UL %ULStyle; D L bullet style type BUTTON (button submit reset) submit for use as form button usemap IMG, INPUT, OBJECT %URI; use client-side image map valign COL, COLGROUP, TBODY, TD, TFOOT, TH, THEAD, TR (top middle bottom baseline) vertical alignment in cells value INPUT CDATA value OPTION CDATA Specify for radio buttons and checkboxes defaults to element content
value PARAM CDATA property value value BUTTON CDATA value LI NUMBER D L sent to server when submitted reset sequence number valuetype PARAM (DATA REF OBJECT) DATA How to interpret value version HTML CDATA %HTML.Version; D L Constant vlink BODY %Color; D L color of visited links vspace APPLET, IMG, OBJECT %Pixels; D L vertical gutter width HR %Length; D L width IFRAME %Length; L frame width width IMG, OBJECT %Length; override width width TABLE %Length; table width width TD, TH %Length; D L width for cell width APPLET %Length; #REQUIRED D L initial width width COL %MultiLength; width COLGROUP %MultiLength; column width specification default width for enclosed COLs width PRE NUMBER D L