Home  >  Article  >  Web Front-end  >  How can we add a single line input field in HTML?

How can we add a single line input field in HTML?

WBOY
WBOYforward
2023-08-20 17:45:261154browse

How can we add a single line input field in HTML?

Use the tag to add a single-line input field. The HTML tag is used to query documents via text fields. This tag can be used anywhere, but is best placed in the head tag. NOTE: This is a deprecated tag and should not be used.

The following is the attribute list−

##PromptStringText field tagActionExample
Attribute

Value

Description

##URL

Use when you need to send the query to a different URL

Try the code below −

<!Doctype html>
<html>
   <head>
      <title>HTML isindex Tag</title>
      <isindex prompt = "Search" />
   </head>
</html>

The above is the detailed content of How can we add a single line input field in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete