The <isindex> element once added a single-line search field for querying a document or site. Authors used prompt for helper text and sometimes action for the submit URL.
Historically a void element (no end tag, no children). It could appear in early <head> or <body> markup. Modern HTML does not define a conforming authoring use.
Reference
Attributes
Historical attributes on <isindex> (all obsolete with the element):
<isindex> does not render a search field here. This preview shows the modern replacement — change the label text and try the form (submit is demo-only).
Equivalent of legacy prompt → visible <label> + type="search".
Modern search form
Demo only — form does not navigate.
Code
HTML Examples
Legacy snippets are for study. Prefer the modern form example for real pages.
Example 1 — Legacy prompt
Historical markup with helper text. Modern browsers ignore the search UI.
HTML
<!-- Obsolete — do not use in new pages -->
<isindex prompt="Search this site:">
One line:<isindex> is legacy search markup — learn it to migrate away, not to build new search.
UA style
Default CSS Settings
Modern browsers do not expose a meaningful isindex search control. There is no reliable user-agent stylesheet to depend on:
default.css
/* Conceptual only — do not rely on isindex styling */
isindex {
display: none;
}
Style your replacement <form> and <input> with normal CSS instead.
Frequently Asked Questions
isindex created a single-line text field for querying a document or site. Pressing Enter submitted the query to the server. It lived in early HTML before authors built full forms.
No. It is obsolete and non-conforming for authors. The WHATWG HTML Standard tells authors to use an explicit form and text control instead.
Use a form with method and action, a visible label, and an input of type search (or text), plus a submit button when helpful.
prompt set the text shown before the field. action set the URL that received the query. Both are obsolete with the element; map them to label and form action today.
No useful search UI. Chrome, Firefox, Safari, Edge, and Opera do not provide the old isindex field. Do not depend on the tag.
No. Learn it only so you can recognize legacy markup. Always build search with form and input.