<isindex>

The <isindex> tag offered a basic search box in HTML documents, enabling users to enter queries that would be sent to the server.

<isindex> Element

The <isindex> element was utilized in HTML to create a basic input field for document searches, enabling users to submit search terms to the server. It is no longer supported in HTML5.

Syntax

index.html
<isindex prompt="Search this document:">
The <isindex> tag is self-closing, so it doesn’t need an end tag. However, in XHTML, it must be properly closed as <isindex/>.

<isindex> Demo

Here's an example of the <isindex> element:

Search This Document
index.html
<h1>Search This Document</h1>
<isindex prompt="Enter your search term:"/>

Key Points

  • Purpose: Provides a search input field within a document.
  • Attributes:
    • prompt: Text shown to guide users on what to input in the search box.
  • Deprecation: Not supported in HTML5; it's better to use a <form> with a search input instead.

Conclusion

The <isindex> element was once used for creating a simple search input field within a document, with a prompt guiding users on what to search. However, it has been deprecated in HTML5. For modern web development, it's recommended to use a <form> with an <input type="search"> element instead.