* comment * See http://www.w3.org/TR/html4/cover.html#minitoc for more * comment * nb multiple language calltip constraints not supported * language * SGML HTML XML * alias * Inline comments Inline comments The HTML comment element is enclosed between "" markers. They do not nest. * alias * HTML html HTML The HTML element Tag: HTML - document root element [Implicit, End Tag Optional] * version=cdata [Deprecated] use document type declarationinstead - * lang (language information), dir (text direction) * alias * HEAD head HEAD The HEAD element Tag: HEAD - document head [Optional Tag] Must contain a TITLE element * profile=URI (or space separated list of URIs) for meta data - * lang (language information), dir (text direction) * alias * TITLE title TITLE The TITLE element Tag: TITLE - document title Must be present in a HEAD section Cannot contain markup other than character entities - * lang (language information), dir (text direction) * alias * META meta META The META element Tag: META - generic metainformation [Empty Tag] Contained in the HEAD element * name=name property name for meta data value * content=cdata meta data property value * scheme=cdata names a scheme to be used to interpret the property's value * http-equiv=name may be used in place of the name attribute (HTTP servers use this attribute to build HTTP response message headers) - * lang (language information), dir (text direction) * alias * A a A Links and anchors: The A element Tag: A - link anchor Enclosed text (the anchor) acts as a link target and/or a link to another target; you cannot nest anchors * name=cdata names the anchor (same as id, must be unique): use this as a fragment name in a URI for a link target - use name if you need entities in the name value - use id if you need non-link usage (style selector, script id) as well as linkage NB if both id and name are supplied, they must be equal * href=URI specifies the anchor's link target * hreflang=langcode the base language of the href target * type=content-type expected content type of the href target * rel=link-types relationship between this anchor and the href target (see the LINK tag) - a space separated list of link types * rev=link-types inverse relationship between the href target and this anchor (see the LINK tag) - a space separated list of link types * charset=charset the character encoding of the href target Anchor name and id attribute values: - must be unique in a document - are case significant - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * shape and coords (image maps) * onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * target (target frame information) * tabindex (tabbing navigation) * accesskey (access keys) * alias * LINK link LINK Document relationships: the LINK element Tag: LINK - a media-independent link [Empty Tag] Contained in the HEAD element * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * href, hreflang, type, rel, rev (links and anchors) * target (target frame information) * media (header style information) * charset(character encodings) Use the rel attribute to establish the relationship the link defines: Alternate - other version of document (eg with other lang value) Stylesheet - external style sheet Alternate Stylesheet - external style sheet (non-preferred) Start - first document in a collection Next - next document in a linear sequence of documents Prev / Previous - previous document in an ordered series of documents Contents / ToC - document serving as a table of contents Index - document providing an index for the current document Glossary - document providing a glossary of terms for the current document Copyright - a copyright statement for the current document Chapter - document serving as a chapter in a collection of documents Section - document serving as a section in a collection of documents Subsection - document serving as a subsection in a collection of documents Appendix - document serving as an appendix in a collection of documents Help - document offering help (more information, links etc.) Bookmark - a link to a key entry point within an extended document The title attribute may be used, for example, to label the bookmark Note that several bookmarks may be defined in each document * alias * BASE base BASE Path information: the BASE element Tag: BASE - document base URI [Empty Tag] Only allowed within the HEAD element, before any external references * href=URI an absolute URI acting as the base for resolving relative URIs found within the document - * target (target frame information) * alias * BODY body BODY The BODY element Tag: BODY - document body [Optional Tag] * background=URI [Deprecated] image used to tile the background * text=color [Deprecated] foreground for text * link=color [Deprecated] foreground for text of unvisited hypertext links * vlink=color [Deprecated] foreground for text of visited hypertext links * alink=color [Deprecated] foreground for text of currently selected (active) hypertext links - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * bgcolor (background color) * onload, onunload (intrinsic events) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * The DIV and SPAN grouping elements SPAN DIV span div The DIV and SPAN grouping elements The DIV and SPAN grouping elements Tag: DIV - block level generic language/style container Tag: SPAN - inline generic language/style container - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * align (alignment) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, nmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * CENTER center CENTER Tag: CENTER - shorthand for
[Deprecated, Loose DTD] Centers enclosed content in the page Use
instead * alias * Headings: The H1, H2, H3, H4, H5, H6 elements H1 H2 H3 H4 H5 H6 h1 h2 h3 h4 h5 h6 Headings: The H1, H2, H3, H4, H5, H6 elements Headings: The H1, H2, H3, H4, H5, H6 elements Tag: H1 - Heading Tag: H2 - Heading Tag: H3 - Heading Tag: H4 - Heading Tag: H5 - Heading Tag: H6 - Heading - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * align (alignment) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * ADDRESS address ADDRESS The ADDRESS element Tag: ADDRESS - information on author A block level element used to provide contact information - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Structured text: Phrase elements EM STRONG, DFN CODE SAMP KBD VAR CITE ABBR ACRONYM em strong dfn code samp kbd var cite abbr acronym Structured text: Phrase elements Phrase elements: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, and ACRONYM Tag: ABBR - abbreviated form (e.g., WWW, HTTP, etc.) Tag: ACRONYM - acronym Tag: CITE - citation reference Tag: CODE - computer code fragment Tag: DFN - instance definition Tag: EM - emphasis Tag: KBD - text to be entered by the user Tag: SAMP - sample program output, scripts, etc. Tag: STRONG - strong emphasis Tag: VAR - instance of a variable or program argument * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Structured text: Quotations BLOCKQUOTE Q blockquote q Structured text: Quotations Quotations: BLOCKQUOTE, Q Tag: Q - short inline quotation Tag: BLOCKQUOTE - quotation (indented block) * cite=URI for source document or message * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Structured text: Subscripts and superscripts SUB SUP sub sup Structured text: Subscripts and superscripts Subscripts and superscripts: the SUB and SUP elements Tag: SUB - subscript Tag: SUP - superscript * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Lines and Paragraphs: Paragraphs P p Lines and Paragraphs: Paragraphs Paragraphs: the P element Tag: P - paragraph [End Tag Optional] * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * align (alignment) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Lines and Paragraphs: Line Breaks BR br - hyphen Lines and Paragraphs: Line Breaks Forcing a line break: the BR element Tag: BR - forced line break [Empty Tag] * id, class (document-wide identifiers) * title (element title) * style (inline style information) * clear (alignment and floating objects) To avoid line breaks use non-breaking space   or nowrap styles Hyphenation: Plain hyphen "-" character (- or -) treated as a normal character Soft hyphen ­ (­ or ­) only displayed if line broken * alias * Lines and Paragraphs: Preformatted text PRE pre Lines and Paragraphs: Preformatted text Preformatted text: The PRE element Tag: PRE - preformatted text * width=max-columns [Deprecated] * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) Horizontal tab: usually aligns to every 8th column * alias * Marking document changes: The INS and DEL elements INS DEL ins del Marking document changes: The INS and DEL elements Marking document changes: The INS and DEL elements Tag: INS - inserted text Tag: DEL - deleted text * cite=URI for source document or message * datetime=datetime when document was changed * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Definition Lists: the DL, DT, and DD elements DD DL DT dd dl dt Definition Lists: the DL, DT, and DD elements Definition Lists: the DL, DT, and DD elements Tag: DL - definition list Can only contain DT and DD tags Tag: DT - definition term [End Tag Optional] Tag: DD - definition description [End Tag Optional] * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Unordered lists (UL), ordered lists (OL), and list items (LI) UL OL LI ul ol li Unordered lists (UL), ordered lists (OL), and list items (LI) Unordered lists (UL), ordered lists (OL), and list items (LI) Tag: UL - unordered list Tag: OL - ordered list Can only contain LI tags Tag: LI - list item [End Tag Optional] * type=style-information [Deprecated] * start=number [in OL] [Deprecated] start number of first LI in ordered list default "1" - may be rendered as a letter or roman number etc * value=number [in LI in OL] [Deprecated] forces an item's number * compact: [Deprecated] boolean: render list in compact way - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) type=style-information [Deprecated] can have values: "disc", "circle", "square", "1" (arabic numbers eg 1, 2, 3), "a" (lower alpha eg a, b, c), "A" (upper alpha eg A, B, C), "i" (lower roman eg i, ii, iii), "I" (upper roman eg I, II, III) * alias * The DIR and MENU elements DIR MENU dir menu The DIR and MENU elements The DIR and MENU elements Tag: DIR - directory list [Deprecated, Loose DTD] Can only contain LI tags Tag: MENU - menu list [Deprecated, Loose DTD] Can only contain LI tags Both act as UL tags * compact: [Deprecated] boolean: render list in compact way - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * TABLE table TABLE Tables: The TABLE element Tag: TABLE - table Can only contain: - CAPTION, THEAD, TFOOT (1, optional) - COL, COLGROUP - TBODY (any number, implied if not present) * summary=text states table's purpose, structure for unon-visual media (eg speech and Braille) * align=left|center|right [Deprecated] position of table in document page * width=length desired width of entire table in page; can bea percentage value, relative to the user agent's available horizontal space NB dir attribute changes column display order - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * bgcolor (background color) * frame, rules, border (borders and rules) * cellspacing, cellpadding (cell margins) * alias * CAPTION caption CAPTION Table Captions: The CAPTION element Tag: CAPTION - table caption * align=top|bottom|left|right [Deprecated] where to place caption for table NB Must be first element within a TABLE - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Table row groups: the THEAD, TFOOT, and TBODY elements THEAD TFOOT TBODY thead tfoot tbody Table row groups: the THEAD, TFOOT, and TBODY elements Table row groups: the THEAD, TFOOT, and TBODY elements Tag: TFOOT - table footer [End Tag Optional] Tag: THEAD - table header [End Tag Optional] Tag: TBODY - table body [Implicit, End Tag Optional] These can only contain row TR tags (at least 1) Each defines a row group. Only one THEAD and/or TFOOT is allowed per TABLE, and must appear before TBODY. TBODY's start tag can be omitted if no THEAD or TFOOT is defined, and no other TBODY is required. * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * align, char, charoff, valign (cell alignment) * alias * COLGROUP colgroup COLGROUP Table column groups: the COLGROUP element Tag: COLGROUP - table column group [End Tag Optional] * span=number number of columns in the group (default "1"), ignored if the COLGROUP contains COL elements * width=multi-length width of each column in the group (pixels, percent, relative (1*) or "0*" (minimal width for whole column) Groups columns logically within a table and applies attributes to them. It can only contain COL elements; if none, it applies to the number of columns it spans (see the span attribute). - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * align, char, charoff, valign (cell alignment) * alias * COL col COL Table column groups: the COL element Tag: COL - table column [Empty Tag] * span=number of columns spanned by this COL element and sharing its attributes (default "1") * width=multi-length width of each column spanned by this COL element (pixels, percent, relative (1*) or "0*" (minimal width for whole column) Applies attributes to a set of columns without grouping them - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * align, char, charoff, valign (cell alignment) * alias * TR tr TR Table rows: The TR element Tag: TR - table row [End Tag Optional] Contains TH and TD table cell elements - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * bgcolor (background color) * align, char, charoff, valign (cell alignment) * alias * Table cells: The TH and TD elements TH TD th td Table cells: The TH and TD elements Table cells: The TH and TD elements Tag: TH - table header cell [End Tag Optional] Tag: TD - table data cell [End Tag Optional] * headers=idrefs a space-separated list of id values of header cells for this cell (for non-visual media and styles (cf scope attribute) * scope=row|col|rowgroup|colgroup specifies the set of following data cells for which this header cell provides information (cf headers attribute) * abbr=text short version of cell content * axis=cdata provides a comma-separated category name list for n-dimensional categorisation * rowspan=number rows spanned by this cell (default "1") where "0" means all following rows to the end of the row group (THEAD, TFOOT, TBODY) * colspan=number columns spanned by this cell (default "1") where "0" means all following columns in the column group (COLGROUP) * nowrap [Deprecated] When present, disables automatic text wrapping for this cell * width=length [Deprecated] recommended cell width * height=length [Deprecated] recommended cell height - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * bgcolor (background color) * align, char, charoff, valign (cell alignment) * alias * IMG img IMG Including an image: the IMG element Tag: IMG - Embedded image [Empty Tag] * src=URI location of the image resource; formats include GIF, JPEG, and PNG * longdesc=uri link to a long description of the image which should supplement the short description provided using the alt attribute * name=cdata names the element - old: use id instead - * id, class (document-wide identifiers) * alt (alternate text) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * ismap, usemap (client side image maps) * align, width, height, border, hspace, vspace (visual presentation of objects, images, and applets) * alias * OBJECT object OBJECT Tag: OBJECT - generic embedded object * classid=URI may be used to specify the location of an object's implementation via a URI, used in association with the data attribute depending on object type * codebase=URI base path used to resolve relative URIs in classid, data, and archive attributes; when absent, its default value is the base URI of the document * codetype=content-type content type of data expected when downloading the object specified by classid; when absent, defaults to the value of type attribute * data=URI may be used to specify the location of object's data * type=content-type content type for the data specified by data * archive=URI-list space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the classid and data attributes * declare when present, this boolean attribute makes the current OBJECT definition a declaration only: the object must be instantiated by a subsequent OBJECT definition referring to this declaration * standby=text message that user agent may render while loading the object's implementation and data - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * tabindex (tabbing navigation) * usemap (client side image maps) * name (form submission) * align, width, height, border, hspace, vspace (visual presentation of objects, images, and applets) * alias * PARAM param PARAM Object initialization: the PARAM element Tag: PARAM - named property value [Empty Tag] Contained within an OBJECT element * name=cdata name of a run-time parameter known by the inserted object * value=cdata value of the run-time parameter specified by name * valuetype=data|ref|object kind of data in value: - data (default): value passed to obect as a string - ref: value is a URI of a resource storing run-time values are stored; it is passed as-is, not resolved like document URIs, to the object - object: value is the id value of an OBJECT declaration in the same document * type=content-type content type of the resource designated by the value attribute if valuetype is "ref" - * id (document-wide identifiers) * alias * APPLET applet APPLET Including an applet: the APPLET element Tag: APPLET - Java applet [Deprecated, Loose DTD] Use OBJECT instead * codebase=URI base path used to resolve relative URIs in classid, data, and archive attributes; when absent, its default value is the base URI of the document * code=cdata name of class file or path to it, relative to codebase * name=cdata name of applet instance * codetype=content-type content type of data expected when downloading the object specified by classid; when absent, defaults to the value of type attribute * data=URI may be used to specify the location of object's data * type=content-type content type for the data specified by data * archive=URI-list comma-separated list of URIs for archives containing classes or resources for preloading (by AppletClassLoader) * object=cdata names a resource containing a serialized representation of an applet's state * width=length width of applet's display area * height=length height of applet's display area - * id, class (document-wide identifiers) * title (element title) * style (inline style information) * alt (alternate text) * align, hspace, vspace (visual presentation of objects, images, and applets) The following sample Java applet: Java applet that plays a welcoming sound. may be rewritten as follows with OBJECT: Java applet that plays a welcoming sound. * alias * Client-side image maps: the MAP and AREA elements AREA MAP area map Client-side image maps: the MAP and AREA elements Client-side image maps: the MAP and AREA elements Tag: MAP - client-side image map Contains at least one AREA or block-level content. If the latter, the content should have A elements specifying shape and coords attributes like AREAs. * name=cdata names the image map being defined (required) Tag: AREA - client-side image map area [Empty Tag] client-side image map area * shape=default|rect|circle|poly type of region shape; "default" means whole region * coords=coordinates as follows: - rect: left-x, top-y, right-x, bottom-y - circle: center-x, center-y, radius - poly: x1, y1, x2, y2, ..., xN, yN, x1, y1 - NB first and last coordinate pairs should be equal (a new pair is added if not) coordinates are relative to the top, left corner of the object; all values are lengths, separated by commas * nohref when set, this boolean specifies that a region has no associated link - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * name (submitting objects with forms) * alt (alternate text) * href (anchor reference), target (frame target information) * tabindex (tabbing navigation) * accesskey (access keys) * shape (image maps) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup, onfocus, onblur (intrinsic events) NB the alt attribute of an area is required; you usually want an href too - An object to which a map should be applied needs the usemap attribute to identify which map to use: * usemap=URI refers to the MAP whose name is addressed by the URI * alias * STYLE style STYLE Header style information: the STYLE element Tag: STYLE - style information * type=content-type the style sheet language as a content type name (eg "text/css") * media=media-descriptors comma separated list of media types, default "screen" Only allowed in the HEAD element. Default style sheet language can be set using a META element, eg or its equivalent MIME header; necessary for any style attributes in tags - * lang (language information), dir (text direction) * title (element title) NB External style sheets are specified using link elements, eg This is a persistent style sheet: use a title attribute as a name with rel="stylesheet" to indicate a preferred style, or a title with rel="alternate stylesheet" for an alternate; the sheet chosen can be set using or the equivalent MIME header. * alias * Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements B BIG I S SMALL STRIKE TT U b big i s small strike tt u Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements Font style elements: the TT, I, B, BIG, SMALL, STRIKE, S, and U elements Tag: TT - teletype or monospaced text style Tag: I - italic text style Tag: B - bold text style Tag: BIG - large text style Tag: SMALL - small text style Tag: STRIKE - strike-through text [Deprecated, Loose DTD] Tag: S - strike-through text style [Deprecated, Loose DTD] Tag: U - underlined text style [Deprecated, Loose DTD] - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown onkeyup (intrinsic events) * alias * Font modifier elements: FONT and BASEFONT BASEFONT FONT basefont font Font modifier elements: FONT and BASEFONT Font modifier elements: FONT and BASEFONT Tag: BASEFONT - base font size [Deprecated, Empty Tag, Loose DTD] Used to set default font properties, in particular the size value in the scale 1 to 7, which defaults to 3 Tag: FONT - local change to font [Deprecated, Loose DTD] * size=cdata [Deprecated] font size - possible values: - 1 to 7: user agent defined font sizes - A relative size change eg "+1", "-3" within the scale of 1 to 7 * color=color [Deprecated] rendering text forground color * face=cdata [Deprecated] comma-separated list of font names in order of preference - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * alias * HR hr HR Rules: the HR element Tag: HR - horizontal rule [Empty Tag] * align=left|center|right [Deprecated] horizontal alignment in page; the default is "center" * noshade [Deprecated] when set, the rule should be rendered as a solid bar rather than a two-color groove * size=pixels [Deprecated] height of the rule * width=length [Deprecated] width of the rule; the default is "100%" - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * BDO bdo BDO Overriding the bidirectional algorithm: the BDO element Tag: BDO - I18N BiDi override * dir=LTR|RTL (required) base direction of the element's text content, overriding the inherent directionality of characters as defined in UNICODE; values are - LTR: Left-to-right text - RTL: Right-to-left text - * lang (language information) * alias * FRAMESET frameset FRAMESET Frames: The FRAMESET element Tag: FRAMESET - window subdivision [Frameset DTD] Use a FRAMESET element instead of a BODY element in the document; the document can then only contain other FRAMESET elements, FRAME elements and no more than one NOFRAME element (to provide alternate content if frames are not supported). * rows=comma-separated-length-list of frame heights in a vertical stack; the default is "100%" (one row) * cols=comma-separated-length-list of frame widths in a horizontal stack; the default is "100%" (one column) If both rows and cols are specified, a grid of frames or child framesets is obtained. - * id, class (document-wide identifiers) * title (element title) * style (inline style information) * onload, onunload (intrinsic events) Objects defined in the HEAD element of a frameset document are available to child frames using the child frame document's "parent" object, which refers to the frameset document * alias * FRAME frame FRAME Frames: The FRAMESET element Tag: FRAME - subwindow [Empty Tag, Frameset DTD] Contained within a FRAMESET element. * name=framename which may be used as the target of subsequent links * longdesc=URI links to a long description of the frame (more complete than the title attribute should provide) * src=URI of the content to populate the frame initially * noresize when set, this boolean tells the user agent that the frame window cannot be resized * scrolling=auto|yes|no whether to provide scrollbars - auto means "if content is too large to fit frame" * frameborder=1|0 whether to show a separator between it and adjoining frames; the default is 1 (separator shown) * marginwidth=pixels how much space between the frame's outline and its content on left and right sides; must be greater than zero * marginheight=pixels how much space between the frame's outline and its content on top and bottom edges; must be greater than zero - * id, class (document-wide identifiers) * title (element title) * style (inline style information) * alias * NOFRAMES noframes NOFRAMES Frames: Alternate content Tag: NOFRAMES - alternate content container for non frame-based rendering [Frameset DTD] Contained within a FRAMESET element, as its last child. Acts like a normal non-frame document's BODY element. - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * IFRAME iframe IFRAME Inline frames: the IFRAME element Tag: IFRAME - inline subwindow [Loose DTD] If this element has content between its tags, this content will only be shown if the user agent does not support IFRAME elements. * longdesc=URI links to a long description of the frame (more complete than the title attribute should provide) * name=framename which may be used as the target of subsequent links * width=length width of the inline frame * height=length height of the inline frame - * id, class (document-wide identifiers) * title (element title) * style (inline style information) * name, src, frameborder, marginwidth, marginheight, scrolling (frame controls and decoration - see FRAME) * align (alignment) * alias * FORM form FORM Forms: The FORM element Tag: FORM - interactive form A container for form controls * action=URI of the form processing agent * method=get|post how form data is sent to the processing agent - get: data - get: data appended to the action URI - post: data sent as a data stream with the action URI * enctype=content-type format of data when method="post"; default is "application/x-www-form-urlencoded" - the value "multipart/form-data" should be used in combination with the INPUT element, type="file" * accept-charset=charset-list (space and/or comma separated) - the processing agent should be able to accept any character from the form for one of these encodings; the default is "UNKNOWN" (supposed to be the same as the encoding of the FORM's document) * accept=content-type-list (comma-separated) of data types the processing agent can accept (cf. the INPUT element when type="file") * name=element-name for styles and scripts - use id attribute instead - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * style (inline style information) * title (element title) * target (target frame information) * onsubmit, onreset, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) - Controls can have attributes disabled (never active, cannot be changed by the user), readonly (cannot be changed by the user), hidden (never displayed; useful for returning extra context to the processing agent) cf INPUT, BUTTON, SELECT, TEXTAREA, LABEL, FIELDSET, LEGEND * alias * INPUT input INPUT Forms: The INPUT element Tag: INPUT - form control [Empty Tag] A user interface control providing data for a form. * type=text|password|checkbox|radio|submit|reset|file|hidden|image|button specific control type; the default is "text" * name=cdata name of the control - for type="radio" all controls in a group have the same name; only one in the group can be selected * value=initial-value of the control, REQUIRED for "radio" and "checkbox" * size=width of the control in pixels or character columns for "text" and "password" * maxlength=number of characters that can be added into a "text" or "password" control; can be greater than size, default unlimited * checked when set, indicates that the "radio" or "checkbox" is in an initial on state (ignored for other controls) * src=URI of image used to decorate the "image" control (a submit button) - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * alt (alternate text) * align (alignment) * accept (legal content types for a server) * readonly (read-only input controls) * disabled (disabled input controls) * tabindex (tabbing navigation) * accesskey (access keys) * usemap (client-side image maps) * ismap (server-side image maps) * onfocus, onblur, onselect, onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * BUTTON button BUTTON Forms: The BUTTON element Tag: BUTTON - push button This is like an INPUT type=submit|button|reset|image, but with content for the button's display (any flow elements other than forms or form elements, or images with image maps). * name=cdata name of the button control * value=initial-value of button control * type=submit|button|reset type of button, the default is "submit": - submit: creates a submit button which invokes the containing FORM's action - reset: creates a reset button which repopulates the containing FORM's controls with initial values - button: creates a push button, used for script invocation - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * disabled (disabled input controls) * accesskey (access keys) * tabindex (tabbing navigation) * onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * SELECT select SELECT Forms: The SELECT element Tag: SELECT - option selector A container for OPTION and OPTGROUP elements * name=cdata name of the control * size=number of visible rows if displayed as a scrolled list box * multiple when set, allows multiple selection; single selction otherwise Entries from the SELECT element are defined by OPTION elements, which can be grouped within OPTGROUP elements for a hierarchical menu structure (2 levels since OPTGROUPS cannot nest in HTML 4). - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * disabled (disabled input controls) * tabindex (tabbing navigation) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) OPTION items are preselected if they have ther selected attribute set; having more than one selected without the SELECT's multiple attribute set is an error. * alias * OPTGROUP optgroup OPTGROUP Forms: The OPTGROUP element within a SELECT element Tag: OPTGROUP - option group * label=text of label to identify the group of contained OPTION elements Contains a number of OPTION elements to be grouped within a SELECT element. (Future versions of HTML may allow nesting of OPTGROUPs.) - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * disabled (disabled input controls) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * OPTION option OPTION Forms: The OPTION element within a SELECT or OPTGROUP element Tag: OPTION - selectable choice entry [End Tag Optional] * selected when set, the OPTION element is pre-selected * value=cdata initial value returned for this OPTION - if not present, the element's content is used * label=text displayed value of the OPTION - if not present, the element's content is used, or failing that, its value attribute's content - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * disabled (disabled input controls) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * TEXTAREA textarea TEXTAREA Forms: The TEXTAREA element Tag: TEXTAREA - multi-line text field * name=cdata name of the control * rows=number of visible text lines * cols=number of visible text columns; longer lines may wrap within the area The content of this element provides the control's initial value. If marked with the readonly attribute, this control can be used for feedback, but its data will still be transmitted with the form. - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * readonly (read-only input controls) * disabled (disabled input controls) * tabindex (tabbing navigation) * onfocus, onblur, onselect, onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * ISINDEX isindex ISINDEX Forms: The ISINDEX element Tag: ISINDEX - single line prompt [Deprecated, Empty Tag, Loose DTD] * prompt=text [Deprecated] a prompt string for the input field A control allowing entry of a single line of text input, labelled with the prompt string. Use instead. - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * alias * LABEL label LABEL Forms: Providing labels for controls without implicit ones Tag: LABEL - form field label text * for=idref identify the control for which this element provides the label, using its id attribute - if not present, the LABEL must contain exactly one control, for which it provides the label If the for attribute is provided, the LABEL element must not contain any controls. When a LABEL element receives focus, it passes the focus to the associated control. - * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * accesskey (access keys) * onfocus, onblur, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * Forms: Adding structure to forms: the FIELDSET and LEGEND elements FIELDSET LEGEND fieldset legend Forms: Adding structure to forms: the FIELDSET and LEGEND elements Tag: FIELDSET - form control group A container for part of a form, grouping its controls thematically. - Tag: LEGEND - fieldset legend Provides a caption explaining the grouping. * align=top|bottom|left|right [Deprecated] where to place the legend text; the default is "top" - Common attributes for both: * id, class (document-wide identifiers) * lang (language information), dir (text direction) * title (element title) * style (inline style information) * accesskey (access keys) * onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events) * alias * SCRIPT script SCRIPT The SCRIPT element Tag: SCRIPT - script statements Can occur anywhere in HEAD or BODY elements. * src=URI of an external script (any element content is ignored if this is present) * type=content-type defines the scripting language used (required) eg "text/javascript" * language=cdata [Deprecated] identifies the scripting language used; use type=content-type instead * defer when set, hints that the script will not generate any document content (eg no "document.write" in javascript) so the user agent can continue parsing and rendering - * charset (character encodings of the script if src attribute is used) The script attribute of elements uses the default scripting language: this can be set using a META element, eg or its equivalent MIME header. - The identifiers used in a script to access document elements match the name attribute in preference to the id attribute if both are present. SCRIPT elements are evaluated and any output generated placed in site. Script content may need to be hidden in some browsers. * alias * NOSCRIPT noscript NOSCRIPT Tag: NOSCRIPT - alternate content container for non script-based rendering Contains any document content (apart from scripts), but is only rendered by the user agent if it cannot perform script execution. * alias * Intrinsic event attributes EVENTS events onload onunload onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onfocus onblur onkeypress onkeydown onkeyup onsubmit onreset onselect onchange Intrinsic event attributes Intrinsic event attributes Attribute definitions * onload=script occurs when the user agent completes loading the document (or all documents in a FRAMESET) - used by BODY, FRAMESET * onunload=script occurs when the user agent removes a document from a window or frame. - used by BODY, FRAMESET * onclick=script occurs when the mouse button is clicked over an element * ondblclick=script occurs when the mouse button is double clicked over an element * onmousedown=script occurs when the mouse button is pressed over an element * onmouseup=script occurs when the mouse button is released over an element * onmouseover=script occurs when the mouse is moved onto an element * onmousemove=script occurs when the mouse is moved while it is over an element * onmouseout=script occurs when the mouse is moved away from an element * onfocus=script occurs when an element receives focus - used by A, AREA, LABEL, INPUT, SELECT, TEXTAREA, BUTTON * onblur=script occurs when an element loses focus * onkeypress=script occurs when a key is pressed and released over an element * onkeydown=script occurs when a key is pressed down over an element * onkeyup=script occurs when a key is released over an element * onsubmit=script occurs when a form is submitted - used by FORM * onreset=script occurs when a form is reset - used by FORM * onselect=script occurs when a user selects some text in a text field - used by INPUT, TEXTAREA * onchange=script occurs when a control loses the input focus and its value has been modified since gaining focus - used by INPUT, SELECT, TEXTAREA