<index>
Available in versions: 2.0, 3.2
The <isindex> tag is officially deprecated effective with HTML 4.0.
Instead, you are now to use the form and input tags to create search forms.
However, this tag remains in minor use on the Internet and is still
recognized by all major browsers.
The isindex tag is used to create a search element with a prompt text
and a one line input window that displays on the Web page.
The exact appearance of the search element is browser dependent.
For example, the default prompt text for IE 5.0 is:
You can search this index. Type the keyword(s) you want to search for:
The concept is that the user enters a space-separated list of one or more keywords
into the search window and then hits the enter key.
A search query URL is created that is composed of a URL, followed by a question
mark, and then the list of keywords (each keyword is preceded by a plus sign).
The default URL is the document URL.
However, you can use the base tag to point to a search page.
Whatever URL is designated must be able to handle a search query.
This tag can be placed in either the head or body element.
However, you cannot place it inside a form element.
There is no closing tag.
Core Attributes
class
dir
id
lang
style
title
Attributes
prompt deprecated 4.0
The prompt attribute is used to write the text that you wish to appear
for the search prompt.
Each browser has a default text.
This attribute is deprecated effective with version 4.0.
However, most browsers continue to recognize this attribute.
Code:
<isindex>
Output:
Click here to see example in separate window
Copyright 2000 by Infinite Software
Solutions, Inc.
Trademark Information
|