HTML <isindex> Tag

The <isindex> tag is used to display search strings in the current document. The tag is placed inside the <head> element.

The <isindex> tag is obsolete and isn’t supported correctly by the browsers. In order to define a single line input field you need to use the <input> tag with the <label> tag, which executes the same function as the prompt attribute.

Syntax

The <isindex> tag is an empty element, so the closing tag isn’t required.

In XHTML we must close the tag (</isindex>).

Example

<!DOCTYPE html>
<html>
  <head>
    <isindex prompt = "Search a text" />
  </head>
</html>

Attributes

Attribute Value Description
prompt hint-text Specifies the text string that is displayed in front of the search query input field. If this attribute is not specified, the default browser will display its own text.
action URL URL programs, which perform the search.

The <isindex> tag supports the Global Attributes and the Event Attributes.

Browser support