<I>
<IFRAME>
<IMG ...>
<INPUT>
<ISINDEX>

To Contents page for this book.. Go to my bookshelf

<I>

The Italic element specifies that the text should be rendered in italic font, where available. Otherwise, alternative mapping is allowed. Anything between the <I>elements</I> should be italics. This sentence will be displayed as "Anything between the elements should be italics
<I> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, refer to the Style Sheets topic.

<IMG ...>

This tag is used to incorporate in-line graphics into an HTML document. This element cannot be used for embedding other HTML text. The IMG tag, which is empty (no closing tag), has these attributes:
ALIGN
<IMG ALIGN= left | right| top| texttop| middle| absmiddle| baseline| bottom| absbottom>
ALIGN=left image will float the image to the left margin (into the next available space there), and subsequent text will wrap around the right hand side of that image.
ALIGN=right will align the image aligns with the right margin, and the text wraps around the left.
ALIGN=top aligns itself with the top of the tallest item in the line.
ALIGN=texttop aligns itself with the top of the tallest text in the line (this is usually but not always the same as ALIGN=top).
ALIGN=middle aligns the baseline of the current line with the middle of the image.
ALIGN=absmiddle aligns the middle of the current line with the middle of the image.
ALIGN=baseline aligns the bottom of the image with the baseline of the current line.
ALIGN=bottom aligns the bottom of the image with the baseline of the current line.
ALIGN=absbottom aligns the bottom of the image with the bottom of the current line.
ALT
Optional text as an alternative to the graphic for rendering in non-graphical environments. Alternate text should be provided for whenever the graphic is not rendered (i.e. if the user has image loading turned off).
e.g. : <IMG SRC="somepicture.gif" ALT="This is some picture"> Be sure to see this image
ISMAP
The ISMAP attribute identifies an image as an image map. This is used for server-side maps. Image maps are graphics in which certain regions are mapped to URLs. By clicking on different regions, different resources can be accessed from the same graphic. Example of use:
e.g. : <A HREF="http://machine/htbin/imagemap/sample">
<IMG SRC="sample.gif" ISMAP></A>
NOTE : To be able to employ image maps in HTML documents, the HTTP server which will be controlling document access must have the correct cgi-bin software installed to control image map behaviour. i.e. the document must have access to an image map handling script which is pointed to your .map file defining the graphics’ ’hot-spots’
A simpler form of image map, known as client-side image maps are also possible. Refer to
Images and Image maps topic for further information.
SRC
The value of the SRC attribute is the URL of the image to be embedded. Its syntax is the same as that of the HREF attribute of the <A> element. SRC is mandatory.
<IMG SRC ="somepicture.gif">This is some picture.
<IMG WIDTH=value HEIGHT=value>
If the WIDTH and HEIGHT attributes are used, the viewer of their document will not have to wait for the image to be loaded and its size calculated. The browser can determine the layout of the text around the image and display the text first. Netscape is the only browser that will scale the whole image if either the WIDTH or HEIGHT attributes are specified, maintaining the aspect ratio. If both are specified then the image is displayed accordingly.
<IMG BORDER=value>
This lets the document author control the thickness of the border around an image displayed. This can be set to 0 so that if the image is surrounded by <A> elements, the normal link border will not be shown.
<IMG VSPACE=value HSPACE=value>
The VSPACE attribute controls the vertical space above and below the image, while HSPACE controls the horizontal space to the left and right of the image. They allow setting of a 'margin' around the image which is kept as white space - useful to prevent text wrapping right up to floating images.
LOWSRC
Using the LOWSRC attribute, it is possible to use two images in the same space. The syntax is :
e.g. : <IMG SRC="highres.gif" LOWSRC="lowres.jpg">
Browsers that do not recognise the LOWSRC attribute ignore it and simply load the image called "highres.gif".
Netscape will load the image called "lowres.jpg" on its first layout pass through the document. Then, when the document and all of its images are fully loaded, will do a second pass through and load the image called "highres.gif" in place. This means that a very low-resolution version of an image loaded initially and if the user stays on the page after the initial layout phase, a higher-resolution version of the same image can "fade in" and replace it.
Both GIF (both normal and interlaced) and JPEG images can be freely interchanged using this method. Both images will be scaled according to any WIDTH/HEIGHT attribute values present in the <IMG ...> element. If the images are of different sizes and a fixed height and width are not specified in the IMG element, the second image (the image specified by the SRC attribute) will be scaled to the dimensions of the first (LOWSRC) image.
<IMG> can also take the CLASS, ID and STYLE attributes to allow style sheet definitions to be applied to it. For more details of these attributes, refer to the
Style Sheets topic.

<INPUT>

The Input element represents a field whose contents may be edited by the user.
Attributes of the Input element:
ALIGN
Vertical alignment of the image. For use only with TYPE=IMAGE in HTML level 2. The possible values are exactly the same as for the ALIGN attribute of the image element.
CHECKED
Indicates that a checkbox or radio button is selected. Unselected checkboxes and radio buttons do not return name/value pairs when the form is submitted.
MAXLENGTH
Indicates the maximum number of characters that can be entered into a text field. This can be greater than specified by the SIZE attribute, in which case the field will scroll appropriately. The default number of characters is unlimited.
NAME
Symbolic name used when transferring the form's contents. The NAME attribute is required for most input types and is normally used to provide a unique identifier for a field, or for a logically related group of fields.
SIZE
Specifies the size or precision of the field according to its type. For example, to specify a field with a visible width of 24 characters:
e.g. : INPUT TYPE=text SIZE="24"
SRC
A URL or URN specifying an image. For use only with TYPE=IMAGE.
TYPE
Defines the type of data the field accepts. Defaults to free text. Several types of fields can be defined with the type attribute:
CHECKBOX : Used for simple Boolean attributes, or for attributes that can take multiple values at the same time. The latter is represented by a number of checkbox fields each of which has the same name. Each selected checkbox generates a separate name/value pair in the submitted data, even if this results in duplicate names. The default value for checkboxes is "on".
HIDDEN : No field is presented to the user, but the content of the field is sent with the submitted form. This value may be used to transmit state information about client/server interaction.
IMAGE : An image field upon which you can click with a pointing device, causing the form to be immediately submitted. The co-ordinates 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-co-ordinate is submitted under the name of the field with .x appended, and the y- co-ordinate 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 Image element.
PASSWORD is the same as the TEXT attribute, except that text is not displayed as it is entered.
RADIO is 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 is a button that when pressed 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 is a button that when pressed submits the form. You can use the VALUE attribute to provide a non- editable label to be displayed on the button. 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 is used for a single line text entry fields. Use in conjunction with the SIZE and MAXLENGTH attributes. Use the Textarea element for text fields which can accept multiple lines.
TEXTAREA is used for multiple-line text-entry fields. Use in conjunction with the SIZE and MAXLENGTH attributes.
VALUE
The initial displayed value of the field, if it displays a textual or numerical value; or the value to be returned when the field is selected, if it displays a Boolean value. This attribute is required for radio buttons.

<ISINDEX>

The ISINDEX element tells the browser that the document is an index document. As well as reading it, the reader may use a keyword search. The document can be queried with a keyword search by adding a question mark to the end of the document address, followed by a list of keywords separated by plus signs.
NOTE : The ISINDEX element is usually generated automatically by a server. If added manually to a HTML document, the browser assumes that the server can handle a search on the document. To use the ISINDEX element, the server must have a search engine that supports this element.
To the <ISINDEX> element Netscape authors have added the PROMPT attribute. <ISINDEX> indicates that a document is a searchable index.
PROMPT has been added so that text, chosen by the author, can be placed before the text input field of the index. This allows any author chosen message to replace the default text of :
This is a searchable index. Enter search keywords
NOTE : The PROMPT attribute is only supported by Netscape.
Another Netscape specific attribute is ACTION. When used in the <ISINDEX> element, it specifies the cgi script or program to which the text string in the input box should be passed.

To Contents page for this book.. Go to my bookshelf