HTML - <isindex> tag



The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable.

The <isindex> tag is no longer recommended as it is not supported by HTML5. Instead of using this tag, we can use the <input> to achieve the same result.

Example

Consider the following example, where we are going to use the isindex tag

<!Doctype html>
<html>
<head>
   <title>HTML isindex Tag</title>
   <isindex prompt = "Search" />
</head>
</html>

On running the above code, it will generate an output consisting of the text in the head tag.

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <isindex> tag also supports the following additional attributes −

Attribute Value Description
prompt string Label for the text field
action URL used when a query needs to be sent to a different URL

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

html_deprecated_tags.htm
Advertisements