HTML Tags – IsIndex Tag


What is HTML <isindex> tag ?

HTML <isindex> tag provides a single line search prompt for querying the contents of the document.

HTML <isindex> tag is used to display search strings in the current document.

HTML <isindex> tag can be used anywhere inside the document, but it would be preferable to use it within <head> tag.

HTML <isindex> tag remove in HTML5 specification.

How HTML <isindex> tag works ?

HTML <isindex> tag provides a single line text input in a page to query a document.

And if the user sents input to the server then server returns the list of page matching with the query.

HTML <isindex> tag element implementation is inconsistent, so its not supported correctly by browsers.

Why HTML <isindex> tag is used ?


HTML <isindex> element was used to create a single line search prompt for querying the contents of the document.

The same functionality can be achieved by using form <input> elements.

That is the reason HTML <isindex> was deprecated in HTML 4.01.

HTML beginners tutorial !!!

Click to Learn More about – HTML Tutorial for beginners

Syntax :

<isindex promt="search" />

Example :


<!Doctype html>
<html>

<head>
    <title>HTML isindex Tag</title>
    <isindex prompt="Search" />
    <style>
        h1 {
            color: blue;
        }
    </style>
</head>

<body>
        <h1>CStechbook</h1>
        <h2>Abdul Kalaam</h2>
        <p>
	Abdul Kalam was an Indian aerospace scientist and politician who served as the 11th President of India from 2002 to 2007.<br/> He was born and raised in Rameswaram, Tamil Nadu and studied physics and aerospace engineering.
        </p>
</body>
</html>

Output :

<isindex> Tag Attributes

HTML <isindex> tag support following specific attributes.

SnoAttributesValueDescription
1prompttextSpecify a label for the textarea.
2actionURLSpecify URL where send the query.

Global Attributes

HTML <isindex> tag support following global attributes.

SnoAttributesValueDescription
1idunique_nameDeclared unique id for an element.
2classclass_nameDeclared one or more classnames for an element.
3stylestylesCSS inline styles specify an element.
4titletitleSpecify extra details of element contain, this will display as a “tooltip” for an elements.

Browser Compatibility

SnoBrowserSupport
1ChromeNo
2FirefoxNo
3EdgeNo
4OperaNo
5SafariNo
6Internet ExplorerNo