
This element identifies the document as containing HTML elements. The begin tag typically appears after the !DOCTYPE element. The end tag comes after all HTML elements in the document.
<HTML
TITLE=text
>
Parameter Description LANG=language Specifies which language to use in ISO standard language abbreviation form. TITLE= Used to provide advisory information.
<HTML> <BODY> <P>This is an HTML document. </BODY> </HTML>
The Italic element specifies that the text should be rendered in italic font, where available.
<I
CLASS=classname
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
STYLE=css1-properties
TITLE=text
event = script
>
Parameter Description CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. event Can be one or more of these events:
onclick ondblclick ondragstart onhelp onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onselectstart
Both the start and end tags are required.
<I>This text will be in italic.</I>
Used to create in-line floating frames.
<IFRAME
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
BORDER=pixels
BORDERCOLOR=color
CLASS=classname
DATAFLD=colname
DATASRC=#ID
FRAMEBORDER=NO | YES | 0 | 1
FRAMESPACING=pixels
HEIGHT=n
HSPACE=pixels
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MARGINHEIGHT=pixels
MARGINWIDTH=pixels
NAME=window_name | _blank | _parent | _self | _top
NORESIZE=NORESIZE | RESIZE
SCROLLING=AUTO | NO | YES
SRC=url
STYLE=css1-properties
TITLE=text
VSPACE=pixels
WIDTH=n
>
Parameter Description ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the control-like element. BORDER=pixels Specifies the thickness of a border to be drawn around the element. The default is 0. BORDERCOLOR=color Sets border color and must be used with the BORDER attribute, except for frames. For a complete list of colors, look at the Internet Explorer color table. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. DATAFLD=colname The column name from the data source object that supplies the bound data. DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element. FRAMEBORDER=NO | YES | 0 | 1 Specifies whether or not to display a 3-D border around the frame. "YES" or 1 causes a border to be displayed (default). "NO" or 0 displays no border. FRAMESPACING=pixels Creates additional space between the frames. HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages. HSPACE=pixels Along with VSPACE, specifies margins for the element. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. MARGINHEIGHT=pixels Sets the amount of top and bottom margin should be set before displaying the text in a frame. MARGINWIDTH=pixels Sets the amount of left and right margin should be set before displaying the text in a frame. NAME=window_name | _blank | _parent | _self | _top Specifies the window or frame to target the contents at. If no frame or window exists that matches the specified target, a new window is opened for the specified link. If no target is specified, the default is "_self" for a link within the same site or "_top" if the site is external. Special target values are listed below:
_blank Specifies to load the link into a new unnamed window. _parent Specifies to load the link into the immediate parent of the document the link is in. _self Specifies to load the link into the same window the link was clicked in. _top Specifies to load the link into the full body of the current window. NORESIZE When this attribute is supplied, the frame is not resizable by the user. The default behavior allows the user to resize the frame. SCROLLING=AUTO | NO | YES Specifies that the frame can be scrolled. If set to "AUTO," the browser determines whether scrollbars are necessary (default). SRC=url Specifies a URL for the associated file to be displayed in the frame. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. VSPACE=pixels Along with HSPACE, specifies margins for the element. WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages.
This element is a block element.
Both the start and end tags are required.
<IFRAME FRAMEBORDER=0 SCROLLING=NO SRC="sample.htm"></IFRAME>
Embeds an image or a video clip in the document.
<IMG
ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP
ALT=text
BORDER=n
CLASS=classname
DATAFLD=colname
DATASRC=#ID
DYNSRC=url
HEIGHT=n
HSPACE=n
ID=value
ISMAP
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
LOOP=n
LOWSRC=url
NAME=name
SRC=url
STYLE=css1-properties
TITLE=text
USEMAP=url
VSPACE=n
WIDTH=n
event = script
>
Parameter Description ALIGN=ABSBOTTOM | ABSMIDDLE | BASELINE | BOTTOM | LEFT | MIDDLE | RIGHT | TEXTTOP | TOP Specifies the alignment for the image. ALT=text Optional text as an alternative to the graphic for rendering in non-graphical environments. Alternate text should be provided whenever the graphic is not rendered. Alternate text is mandatory for Level 0 documents. BORDER=n Specifies the thickness of a border to be drawn around the element. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. DATAFLD=colname The column name from the data source object that supplies the bound data. DATASRC=#ID Indicates the ID of the data source object that supplies the data that is bound to this element. DYNSRC=url Specifies the address of a video clip or VRML world to be displayed in the window. Stands for Dynamic Source. HEIGHT=n Along with WIDTH, specifies the size at which the element is drawn. This attribute may be initially set in pixels or percentages. HSPACE=n Along with VSPACE, specifies margins for the element. ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. ISMAP Identifies the picture as a server-side image map. Image maps allow users to access other documents by clicking different areas in an image. Server-side image maps require a script or other service on the server to process click information. When the user clicks on the image, the server receives the coordinates of the user's click along with the URL of the map. Internet Explorer appends a "?" and a comma-separated pair of x-y coordinates to the HREF attribute in the A element. For further information regarding server-side maps and the content of the map file, check your HTTP server documentation. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. LOOP=n Specifies how many times a sound or video will loop when activated. Also specifies how many times the marquee should loop. LOWSRC=url Specifies a lower resolution image to display. NAME=name Specifies the name of the control. SRC=url Specifies a URL for the associated file. STYLE=css1-properties Specifies an in-line style sheet for the tag. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. USEMAP=url Identifies the picture as a client-side image map and specifies a MAP to use for responding to the user's clicks. Use the MAP and AREA elements to create the client-side mapping information. VSPACE=n Along with HSPACE, specifies margins for the element. WIDTH=n Along with HEIGHT, sets the initial size of the element. This attribute may be initially set in pixels or percentages. event Can be one or more of these events:
<IMG SRC=mygraphic.bmp>
Specifies a form input control.
<INPUT
ACCESSKEY=key
ALIGN=LEFT | CENTER | RIGHT
ALT=text
CLASS=classname
DISABLED
ID=value
LANG=language
LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT | VBS
MAXLENGTH=n
NAME=name
READONLY
SIZE=n
SRC=url
STYLE=css1-properties
TABINDEX=n
TITLE=text
TYPE=BUTTON | CHECKBOX | FILE | HIDDEN | IMAGE | PASSWORD | RADIO | RESET | SUBMIT | TEXT
VALUE=value
event = script
>
Parameter Description ACCESSKEY=key Specifies an accelerator for the element. Pressing alt-key selects this element in the user's browser. This attribute applies to the BUTTON, CHECKBOX, FILE, PASSWORD, RADIO, RESET, SUBMIT, and TEXT input types. ALIGN=LEFT | CENTER | RIGHT Displays the element left flush, right flush, or centered relative to the display or table when TYPE=IMAGE.. ALT=text When TYPE=IMAGE, optional text as an alternative to the graphic for rendering in non-graphical environments. Alternate text should be provided whenever the graphic is not rendered. Alternate text is mandatory for Level 0 documents. CLASS=classname Specifies the class of the tag being defined. This is used to associate a sub-classed style sheet with the tag. DISABLED Used to disable an element. This attribute prevents an element from receiving the focus, and causes the element to appear "grayed out." ID=value An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underbar character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position. LANG=language Specifies which language to use in ISO standard language abbreviation form. LANGUAGE=JAVASCRIPT | JSCRIPT | VBS | VBSCRIPT Specifies the language the current script is written in and invokes the proper scripting engine. The default value is JAVASCRIPT.
JAVASCRIPT, JSCRIPT The scripting language is written in JavaScript. VBS, VBSCRIPT The scripting language is written in VBScript. MAXLENGTH=n Indicates the maximum number of characters that can be entered into a text control. This attribute applies to the PASSWORD and TEXT input types. NAME=name Specifies the name of the control, bookmark, or application. READONLY Causes the element's contents to be read only. The INPUT element can still receive the focus. This attribute applies to the PASSWORD and TEXT input types. SIZE=n Specifies the size of the control. SRC=url Specifies a URL for the associated file. This attribute applies to the IMAGE type. STYLE=css1-properties Specifies an in-line style sheet for the tag. TABINDEX=n Sets the tab order position for the object. This attribute applies to the BUTTON, CHECKBOX, FILE, PASSWORD, RADIO, RESET, SUBMIT, and TEXT input types. TITLE=text Used to provide advisory information. The contents of the title attribute will be displayed in a ToolTip during the onmouseover event. TYPE=BUTTON | CHECKBOX | FILE | HIDDEN | IMAGE | PASSWORD | RADIO | RESET | SUBMIT | TEXT Specifies the type of intrinsic control. The default is TEXT.
BUTTON A button on the HTML form. CHECKBOX Used for simple Boolean attributes or for attributes that can take multiple values at the same time. It is represented by a number of check box fields, each of which has the same name. Each selected check box generates a separate name/value pair in the submitted data, even if this results in duplicate names. The default value for check boxes is on. FILE A file upload element that allows the user to supply a file as the input. HIDDEN No field is presented to the user, but the content of the field is sent with the submitted form. This value can be used to transmit state information about client/server interaction. IMAGE An image field that you can click, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixel units from the upper-left corner of the image, and are returned (along with the other contents of the form) in two name/value pairs. The x-coordinate is submitted under the name of the field with ".x" appended, and the y-coordinate is submitted under the name of the field with ".y" appended. Any VALUE= attribute is ignored. The image itself is specified by the SRC= attribute, exactly as for the IMG element. PASSWORD The same as the TEXT input type, except that text is not displayed as the user enters it. RADIO Used for attributes that accept a single value from a set of alternatives. Each radio-button field in the group should be given the same name. Only the selected radio button in the group generates a name/value pair in the submitted data. Radio buttons require an explicit VALUE= attribute. RESET When pressed, this button resets the form's fields to their specified initial values. The label to be displayed on the button may be specified just as for the SUBMIT button. SUBMIT Submits the form. The default label is application-specific. If a SUBMIT button is pressed in order to submit the form, and that button has a NAME attribute specified, then that button contributes a name/value pair to the submitted data. Otherwise, a SUBMIT button makes no contribution to the submitted data. TEXT Used for a single-line text-entry field. Use in conjunction with the SIZE= and MAXLENGTH= attributes. VALUE=value For textual/numerical controls, specifies the default value of the control. For Boolean controls, specifies the value to be returned when the control is turned on. This attribute applies to the BUTTON, CHECKBOX, HIDDEN, PASSWORD, RADIO, RESET, SUBMIT, and TEXT input types. event Can be one or more of these events:
onafterupdate onbeforeupdate onblur onchange onclick ondblclick ondragstart onfocus onhelp onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onselect onselectstart
Objects can be submitted in forms. The NAME is the identifier of the object tag (i.e., <OBJECT NAME=slider CLASSID=...>), and the VALUE is obtained by getting the value of the default property of the control. If any of the following conditions occur, then the object will not become part of the submit string:
Object did not instantiate Object does not have an identifier Object does not have a default property to get Default property cannot be coerced into a string
<FORM ACTION="http://intranet/survey" METHOD=POST> <P>Name <BR><INPUT NAME="CONTROL1" TYPE=TEXT VALUE="Your Name"> <P>Password <BR><INPUT TYPE="PASSWORD" NAME="CONTROL2"> <P>Color <BR><INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="0" CHECKED>Red <INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="1">Green <INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="2">Blue <P>Comments <BR><INPUT TYPE="TEXT" NAME="CONTROL4" SIZE="20,5" MAXLENGTH="250"> <P><INPUT NAME="CONTROL5" TYPE=CHECKBOX CHECKED>Send receipt <P><INPUT TYPE="SUBMIT" VALUE="OK"><INPUT TYPE="RESET" VALUE="Reset"> </FORM>
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.