HTML <isindex> Tag

Beginner
5 min read
Updated: Oct 2026
3 examples
Obsolete

Definition and Usage

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.

Study it for legacy pages only. Build real search with <form>, <label>, and <input type="search">.

Obsolete.

Deprecated in HTML 4.01 and non-conforming in the HTML Living Standard. Authors must not use it; browsers no longer provide a useful isindex UI.

Use instead.

Prefer an explicit <form> with action / method and a labeled text or search control. Optional: <button type="submit">.

HTML Syntax

syntax.html
<isindex prompt=" Search…">

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.

Attributes

Historical attributes on <isindex> (all obsolete with the element):

AttributeDescriptionTry it
promptText shown before the search field (map to <label> today)Try it
actionURL that received the query (map to <form action>)Try it

Global attributes were also allowed historically, but they do not make the element valid for new pages.

Global Attributes

The <isindex> tag also supports the Global Attributes in HTML.

Live Preview

<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.

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:">
Try It Yourself

How It Works

  1. Write <isindex>. No closing tag and no children in classic use.
  2. Set prompt to the text that appeared before the field.
  3. Old browsers rendered one line and submitted on Enter.
  4. Today: the tag does not give you a working search UI — migrate to a form.

Example 2 — prompt and action

Some implementations sent the query to a chosen URL via action.

HTML
<!-- Obsolete — learning only -->
<isindex
  prompt="Enter your search term:"
  action="/search"
>
Try It Yourself

How It Works

  1. prompt labels the field for the user.
  2. action names where the query string was sent.
  3. Map to modern HTML: <form action="..."> + <label> + <input>.
  4. Do not ship this markup — validators flag it as obsolete.

Example 3 — Modern form replacement

Accessible search using standard form controls.

HTML
<form action="/search" method="get" role="search">
  <label for="q">Search this site:</label>
  <input type="search" id="q" name="q">
  <button type="submit">Search</button>
</form>
Try It Yourself

How It Works

  1. Wrap controls in <form> with action and method="get".
  2. Connect a <label> with for matching the input id.
  3. Use type="search" for a semantic search field (clear button in some UAs).
  4. Add a submit button so users are not limited to the Enter key.

Edge Cases & Pitfalls

Most problems with <isindex> today are expectations that it still works.

obsolete

Never ship in new HTML

Validators flag it. Replace with <form> + <input>.

a11y

prompt is not a real label

Modern forms need a visible <label> (or carefully used aria-label).

head

Do not put search UI in <head>

Interactive content belongs in the body. Old head-placed isindex patterns are historical only.

find

Page Find is not the same

Browser Find (Ctrl/Cmd+F) searches the open page. Site search still needs a form (or app logic).

migration

Map attributes 1:1

prompt → label text; action → form action; query name → name on the input.

Browser Support

The <isindex> element is obsolete. It is non-conforming for authors in the HTML Living Standard. MDN no longer documents it as a supported element.

✓ Obsolete · Not supported

<isindex>

No useful single-line isindex search UI in modern Chrome, Firefox, Safari, Edge, or Opera. Use form + input instead.

0% Modern isindex UI
Google Chrome No isindex UI
Not supported
Mozilla Firefox No isindex UI
Not supported
Apple Safari No isindex UI
Not supported
Microsoft Edge No isindex UI
Not supported
Opera No isindex UI
Not supported
Internet Explorer Legacy only · EOL
Legacy only
<isindex> Not supported

Bottom line: Learn <isindex> for history and audits. Build search with <form> and <input type="search">.

Key Takeaways

  • Role: <isindex> once offered a one-line document/site search field.
  • Attrs: legacy prompt and action map to label text and form action.
  • Status: obsolete — do not use in new documents.
  • Replace with: <form> + labeled <input type="search"> (+ submit button).

One line: <isindex> is legacy search markup — learn it to migrate away, not to build new search.

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.

Next: kbd

Mark keyboard input with the kbd element.

kbd tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful