HTML | <isindex> tag

The <isindex> tag is used to querying any document through a text field. Means this tag inform the browser that the user wants to provide the search function through the document. If you want to search any specific word in a long article this tag is helpful then. But during these days all the browsers contain that feature by pressing CTRL + F will let you search the word, so this tag is no more useful these days.

Syntax:

<isindex promt="search">

Attribute:

  • prompt: This attribute contains a string which is label for the text field.
  • action: This attribute holds the URL when you need to send the query to a different URL.

Note: HTML5 does not support <isindex> tag.
Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!Doctype html>
<html>
  
<head>
    <title>HTML isindex Tag</title>
    <isindex prompt="Search" />
    <style>
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h2>HTML <isindex> tag</h2>
        <p>
            Articles that need little modification/improvement
        from reviewers are published first. To quickly get your
        articles reviewed, please refer existing articles, 
        their formating style, coding style, and try to make
        your close to them.
        </p>
    </center>
</body>
  
</html>                    

chevron_right


Output: get word was searched,

Supported Browsers: The browsers supported by HTML | <isindex> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

full-stack-img

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.