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

WBOY
Release: 2023-08-20 17:45:26
forward
1152 people have browsed it

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>
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!