- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we add a single-line input field in HTML?
Use the <isindex> tag to add a single-line input field. The HTML <isindex> tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. Note: It is a deprecated tag and should not be used.
The following are the attributes −
Attribute | Value | Description |
---|---|---|
Prompt | string | Label for the text field |
Action | URL | used when a query needs to be sent to a different URL |
Example
Try the following code −
<!Doctype html> <html> <head> <title>HTML isindex Tag</title> <isindex prompt = "Search" /> </head> </html>
Advertisements