如何在 HTML 中添加单行输入字段?
htmlweb developmentfront end technology更新于 2026/1/17 9:48:17
使用 <isindex> 标签添加单行输入字段。HTML <isindex> 标签用于通过文本字段查询文档。该标签可以在任何地方使用,但最好使用 head 标签。注意:head 标签已弃用,不应使用。
以下是 − 的属性
| 属性 | 值 | 描述 |
|---|---|---|
| Prompt | string | 文本字段的标签 |
| Action | URL | 当查询需要发送到其他 URL 时使用 |
示例
尝试以下代码 −
<!Doctype html> <html> <head> <title>HTML isindex Tag</title> <isindex prompt = "Search" /> </head> </html>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

