HTML <isindex> IsIndex Tag
Tags: learnhtml, htmli
Published: 2021-05-10 08:42:23

---
title: HTML <isindex> IsIndex Tag
published: true
date: 2021-02-25 05:10:59 UTC
tags: LearnHTML,HTMLI
canonical_url: https://sharepointanchor.com/learn-html/html-isindex-tag/
---

In HTML, the <isindex> **IsIndex tag** is used to **display the search string** in the current document. It provides a single-line text input on a page to query a document. This tag uses the **“prompt”** and **“action”** attributes.

**Note** : The **<isindex>** tag is **deprecated in HTML** , and it is **not available in HTML 5**.

The **<isindex>** tag can be placed anywhere in the HTML document, but it is recommended to integrate it within the **<head>** element. This tag is mainly used to **search for any specific word** in a long article but it is no more useful these days.

**Info** : Nowadays all the browsers contain the **search feature** by pressing the **<button>CTRL</button> + <button>F</button>** keys, it will let you search the word.

<svg aria-hidden="true" focusable="false" data-icon="clock" width="20" height="20" fill="none" stroke="currentColor" style="display:inline-block;vertical-align:-0.1em" role="img" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>Estimated reading time: 3 minutes

## Syntax:

The **<isindex>** tag does **not contain the closing tag** in **HTML**. But in **XHTML** it consists of both the **starting <isindex> tag** and the **ending <isindex/>tag**.

```

<isindex prompt=" " action=" ">

```

## Sample of the HTML <isindex> Tag:

```

<!DOCTYPE html>
<html>
  <head>
    <isindex prompt="Search your document">
  </head>
</html>

```

## Result:

All major browsers have now **removed the <isindex> tag** , so avoid using it.

![💡](https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png) **Tips** : You can use the **<input>** tag with the **<label>** tag, to define a single line input field that executes the same function of the **<isindex>** tag.

### Example:

Here is the sample for creating a search box by using the **<lable>** and **<input>** tags with the **<form>** element.

```

<!DOCTYPE html>
<html>
  <head>
    <form action="/search">
  <hr>
  <label>
    Search Document
    <input name="isindex">
  </label>
  <hr>
</form>
  </head>
<body>
<h2>This is the sample heading</h2>
<p>This is the sample paragraph</p>
</body>
</html>

```

### Result:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/result-46.png)<figcaption>Result</figcaption>

## Attributes:

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

<style> th, td{ padding: 20px; } </style>

| Attribute | Value | Description |
| --- | --- | --- |
| prompt | hint-text | It is used to **specify 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 | It defines the **URL programs** , which perform the search. |

## Browser Support:

![](https://sharepointanchor.com/wp-content/uploads/2021/02/browser-6.png)<figcaption>Browser support</figcaption>

### Related Articles:

- **[HTML <embed> Embed Tag](https://sharepointanchor.com/learn-html/html-embed-tag/)**
- [**HTML <em> Emphasis Tag**](https://sharepointanchor.com/learn-html/html-em-emphasis-tag/)
- **[Basic HTML Definitions and Usages in the Real World](https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/)**
- **[HTML <dir> Directory Tag](https://sharepointanchor.com/learn-html/html-dir-directory-tag/)**
- **[HTML <col> Column Tag](https://sharepointanchor.com/learn-html/html-col-column-tag/)**

The post [HTML <code><isindex></code> IsIndex Tag](https://sharepointanchor.com/learn-html/html-isindex-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).